Sorry to keep pestering... I've got a custom command that I'm wanting to fire via a menuItem in a custom menu. The command runs fine when called via maya.cmds. But so far my menuItem insists on throwing a 'not defined' error for the command flag. Am I following the correct syntax for command flags in Python here?
My command is *ShotSetup()*. My menuItem code is: *mds.menuItem(p=shotsMenu, l='Shot Setup', c="ShotSetup()")* The menu initializes correctly, but when I run that menu item, I get the following error: *# Error: name 'ShotSetup' is not defined* *# Traceback (most recent call last):* *# File "<maya console>", line 1, in <module>* *# NameError: name 'ShotSetup' is not defined # * -Tim -- 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/CAPh%3D1bmnYOThTfWPvz2ZC80AFHZAy9BZSCB9pbBXM9jEUYVxOQ%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
