hi, this is the function run() >>
def run ():
driver = cmds.textField('cat_driver_tf', q=1, tx=1 )
driven = cmds.textField('cat_driven_tf', q=1, tx=1 )
toExec = ( "['{}']".format(driven) )
toExec = toExec.replace( ", ", "', '" )
print( toExec)
exec( 'drivens= {}'.format(toExec) )
for i in ...
Die Suche ergab 1 Treffer
- Donnerstag 18. Juli 2024, 11:54
- Forum: Allgemeine Fragen
- Thema: in Maya Autodesk>>trouble with Exec ( ) with the error "name is not defined"
- Antworten: 1
- Zugriffe: 1461
