Hi all,

For anyone that happens to be using my MayaSublime plugin, I just wanted to 
post a quick note. 

I merged a submitted patch (with some modifications) that adds a feature but 
changes some default behavior. What it adds is the ability to exec the entire 
file when sending an empty selection. What it changes is that instead of 
modifying the Maya global python namespace, it now uses a private copy that is 
still persistent between successive calls. But it also includes setting 
__file__ for anyone that uses this variable in their script and expects it to 
be able to resolve properly within Maya when exec'd

Example:

You used to be able to do this from Sublime:
    x = 'foo'

and do this in the Script Editor:
    print x
    # 'foo'

This no longer works because Sublime is using its own private copy of the Maya 
namespace. 

But if you do this from Sublime:
    x = 'foo'

then this still works from Sublime, again:
    # from Sublime
    print x
   # 'foo'   (in Maya)


Changes:
https://github.com/justinfx/MayaSublime/commit/499f7af64481b2a733e08a427816f862fb16df5a

Thanks!
-- justin


-- 
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 post to this group, send email to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to