exec to the rescue.
def foo():
exec(notesAttrValue)
--
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_m...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/python_inside_maya/03b7542c-3712-40fa-8e4d-0b41fafa778f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
execto the rescue.def foo(): exec(notesAttrValue)
On 9 January 2016 at 22:05, Rudi Hammad <rudih...@gmail.com> wrote:
hello,
the title of the post says it all. Here is my example
http://pastebin.com/NWpmZVP2
I am not sure why it is note working if the note says cmds.joint(), my def should be executing that.
cheers
--
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+unsub...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/python_inside_maya/03b7542c-3712-40fa-8e4d-0b41fafa778f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.