Hi,
I'm currently trying to wrap my head around contexts. What I have so
far is a context that lets me create selections by clicking on things.
What I don't quite get, is there any chance to stop the script calling
this context from moving on until the context is completed (user
pressed return or aborted the context)? Or am I bound to using the
MPxToolCommand from within my context if I want to use the user action
as an input to a script?
Example:
import maya
maya.cmds.TestContextCommand('Test1')
maya.cmds.setToolTo('Test1')
print 'Hi'
This script prints "Hi" immediately after switching to the context and
is not waiting for the user to finish his inputs.
Thanks for any insights, cheers!
-André
--
view archives: http://groups.google.com/group/python_inside_maya
change your subscription settings:
http://groups.google.com/group/python_inside_maya/subscribe