Also, as with "Moth Things", Python gives you wings :) -
https://xkcd.com/353/

On Thu, Mar 19, 2015 at 1:11 PM, Joe Weidenbach <[email protected]> wrote:

> The answer, as with moth things, is "it depends."  Every object has a
> lifetime.  Objects that are referenced in the "Global" maya namespace will
> be kept the whole time Maya is running, everything else is dependent on the
> lifetime of its scope.
>
> Compared to Web Development (which I was doing when I got into Maya
> development 13 years ago), it's a lot more straightforward in some ways.
> You're not worried about things like the current request or the current
> session, but you do have to consider object lifetimes still.  My personal
> take is to serialize my data which I want to be persistant somewhere.  You
> could use Maya's optionVars for this, or you could roll your own with
> cPickle or json or shelves.  There's lots of options to ensure data
> persistence.  With a persistent system, it's not even worried about Maya
> running or not :).
>
>
> On Thu, Mar 19, 2015 at 12:25 PM, KristoNovo <[email protected]> wrote:
>
>> Hi Folks,
>>
>> as a Web-Developer I´m used to the principles of HTTP which means it´s an
>> ongoing story of request and response. Before diving into Python within
>> Maya I´d like to clarify things. When a Script is called which references a
>> class and changes the value of a property: Will this change be kept the
>> whole time Maya is running?
>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "Python Programming for Autodesk Maya" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to [email protected].
>> To view this discussion on the web visit
>> https://groups.google.com/d/msgid/python_inside_maya/3ee1f0e7-05b6-4012-be2b-c18a746c7c7e%40googlegroups.com
>> <https://groups.google.com/d/msgid/python_inside_maya/3ee1f0e7-05b6-4012-be2b-c18a746c7c7e%40googlegroups.com?utm_medium=email&utm_source=footer>
>> .
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Python Programming for Autodesk Maya" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/python_inside_maya/CAM33%3Da4a9ASifZz%2B3_4QaMDWxNSaa9XXZBbuj8Xeq55V%3Ds1ujg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to