Hi, I am trying to execute a small script, which actually is value of a string attribute:
For example: a = 2 b = 2 scpt = node.myScript.get() Consider the value of "myScript" is "print a, b". I tried using this way because script uses variables that are not defined inside of it: python( scpt, globals() ) #Doesn't work. exec( scpt, globals() ) #Doesn't work. In case if script is not having dependency of any other external variables, then "python ( scpt )" works fine Cheers Prashant --~--~---------~--~----~------------~-------~--~----~ http://groups.google.com/group/python_inside_maya -~----------~----~----~----~------~----~------~--~---
