Hello there,
I am trying to run the userScript.py file placed in 
Documents\maya\2020\prefs\scripts , but there are functions and variables 
which are not declared when Maya is open…
I basically did it:
*def functionA():*
*        varA = False*
*cmds.scriptJob(event = ["SceneOpened", functionA]) *

Sometimes it runs, and sometimes do not.
The userScript.mel runs always, so I think I could put at the end of the 
mel code, a line to call the python code.

Any suggestion? thanks!

-- 
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 python_inside_maya+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/python_inside_maya/b3b1bf17-c520-4ef0-b7cd-d26afe63220cn%40googlegroups.com.

Reply via email to