Syntax error in Maya Python Script [on hold]
- by Enchanter
Ok this error is immensly frustrating as it is obviously a simple syntax issue. Basically I've written two lines of maya script in python designed to create a list of the names of all the joints of a model currently selected in the model viewer. Here are the two lines of script:
import maya.cmds
joints = ls(selection = true, type = 'joint')
Upon compiling the code the script editor is saying there is a syntax error in the second line, but I do not see any reason why this code should not execute?