[python] question about class attribute

Help bring our custom Ages to life! Share tips and tricks, as well as code samples with other developers.

Re: [python] question about class attribute

Postby Nadnerb » Sat Apr 26, 2008 4:21 pm

He isn't misunderstanding, he's stating what Cyan does with the age python files. Every object that has a pythonFileMod essentially ends up with it's own instance of the entire uru python runtime. Nothing is shared between script instances, even though they may be getting their source from the same file. This is why in order to share information between objects, one must go through the SDL. The SDL is shared throughout an age instance, and can be read and written by any of the python scripts running within it, and hence, is the only way to pass data between objects.
Image
Live KI: 34914 MOULa KI: 23247 Gehn KI: 11588 Available Ages: TunnelDemo3, BoxAge, Odema
Nadnerb
 
Posts: 1057
Joined: Fri Sep 28, 2007 8:01 pm
Location: US (Eastern Time)

Re: [python] question about class attribute

Postby Gbadji » Sun Apr 27, 2008 1:17 am

So, even in coding files there are some mysteries in URU. I wasn't expecting so much :).
La vie est faite de surprises, apprécions les.

Thanks for the information, I'll use SDL variables. The questions will arrive soon, do not leave too far ;) .
The French's Mystpedia age Project - http://www.mystpedia.net
To find me in the Cavern: Gbadji KI #6911493 or Alatan KI#7869109
User avatar
Gbadji
 
Posts: 73
Joined: Sat Feb 02, 2008 5:59 am

Re: [python] question about class attribute

Postby Robert The Rebuilder » Mon Apr 28, 2008 9:59 am

D'Lanor - I pulled an "Andy" on you and copied your SDL post into a new Wiki page. (He did that to me with my clickable object post).

Hope you don't mind. 8-)
Can we rebuild it? Yes, we can - here's how.

MOULagain KI# 1299

Myst Movie coming soon - spread the word!
User avatar
Robert The Rebuilder
 
Posts: 1383
Joined: Sat Sep 29, 2007 7:24 am
Location: Virginia, US

Re: [python] question about class attribute

Postby Gbadji » Tue Apr 29, 2008 10:57 am

Thanks Robert, you give me an answer before I post my question about the notify function ;).

Do you have some others answers ? (even if I haven't yet others questions)
The French's Mystpedia age Project - http://www.mystpedia.net
To find me in the Cavern: Gbadji KI #6911493 or Alatan KI#7869109
User avatar
Gbadji
 
Posts: 73
Joined: Sat Feb 02, 2008 5:59 am

Re: [python] question about class attribute

Postby andylegate » Tue Apr 29, 2008 11:38 am

I would never, NEVER ever copy someone's post over ....to....the.....wi------ oh yah, I did do that, didn't I? hehehee :D

Ah, but what I copied looks really, REALLY good now, as someone made it look nice with pics and everything.
"I'm still trying to find the plKey for Crud!"
Image
Blender Age Creation Tutorials
3DS Max Age Creation Tutorials
User avatar
andylegate
 
Posts: 2348
Joined: Mon Oct 01, 2007 7:47 am

Re: [python] question about class attribute

Postby Robert The Rebuilder » Wed Apr 30, 2008 6:36 am

Yeah - I did the formatting and screen shots. But thanks for getting the ball rolling on the tutorial! Sometimes these things just need a shove in order to reach fruition.

Gbadji: sorry - all out of predicitions! This time, we'll wait for you to ask the questions before answering them. :lol:
Can we rebuild it? Yes, we can - here's how.

MOULagain KI# 1299

Myst Movie coming soon - spread the word!
User avatar
Robert The Rebuilder
 
Posts: 1383
Joined: Sat Sep 29, 2007 7:24 am
Location: Virginia, US

Re: [python] question about class attribute

Postby Gbadji » Thu May 01, 2008 12:34 am

Oups, I have to thanks Andy too :) (I haven't read correctly)
The French's Mystpedia age Project - http://www.mystpedia.net
To find me in the Cavern: Gbadji KI #6911493 or Alatan KI#7869109
User avatar
Gbadji
 
Posts: 73
Joined: Sat Feb 02, 2008 5:59 am

Previous

Return to Scripting

Who is online

Users browsing this forum: No registered users and 0 guests

cron