Hi all,

I’m looking to run a snippet of Python when the user changes project.

For example, I’d like the string "Project was set!" to be printed when
running this.

from maya import cmds
def on_setproject():
    print("Project was set!")

cmds.workspace("C:/my/project", openWorkspace=True)

The MSceneMessage
<http://download.autodesk.com/us/maya/2011help/API/class_m_scene_message.html>
class is the closest thing I found, but it doesn’t provide anything related
to projects/workspaces.

Any ideas?

Thanks!
​
-- 
*Marcus Ottosson*
[email protected]

-- 
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/CAFRtmOBo508CRtQCXwAi3%2BcPafk%2BT2P-6iP0dbZ421MKiHDy5g%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to