Hi Marcus,
thanks for the reply. I already tested a version of the script with the UI
enclosed in a function. The script looked like this:
import maya.cmds as mc
def load_UI():
# UI mumbo jumbo
def printIt():
# same as before
# call the function
load_UI()
I'm almost sure it worked both inside the script editor AND by importing it
from the shelf, without calling the function from the button. I'm not using
a computer with Maya installed right now, so I'll try again. What I am sure
of is that it still gave me problems when the UI button calls for the
printIt() function. I'll give it a shot and update the post ASAP.
Thanks a lot, especially for the PEP08 info.
--
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/2c398bd5-53ee-4636-b01f-2b17e19428b4%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.