Thank you Justin,
I'm sorry, but i'm a real newbie in Python, i'm not understand why i can't
assign a variable inside the function like this:
def buttonLGTPressed(*args):
buttonPressed = 'LGT'
print "button pressed"
cmds.button('Open', l="Open Last scene", w=180, h=30,
command=buttonLGTPressed)
if buttonPressed == 'LGT':
print "button LGT pressed"
it's not the good way to do this?
--
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/fea16d97-5ea0-43da-8a14-a951eb65cf18%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.