PDA

View Full Version : TypeError: Object frontShape is invalid


jojanpm
11-11-2010, 07:57 AM
Getting this error when referencing characters:

# File read in 10 seconds. #
# Error: file: C:/Program Files/Autodesk/Maya2009/scripts/others/stereoCameraCustomPanelSetup.mel line 295: Object frontShape is invalid
# Traceback (most recent call last):
# File "<maya console>", line 1, in <module>
# File "C:\Program Files\Autodesk\Maya2009\Python\lib\site-packages\maya\app\stereo\stereoCameraRig.py", line 266, in listRigs
# parents = cmds.listRelatives(c, path=True, parent=True )
# TypeError: Object frontShape is invalid #


But found no problem in the created scene.
anyway, How can we avoid this error?

mduvekot
11-11-2010, 04:09 PM
It's a rare error message, I've only seen it three times or so. It looks as if Maya has difficulties finding the parent transforms of the cameras.

I suspect the problem is that Maya tries to use the append method on result in


for c in cameras:
parents = cmds.listRelatives(c, path=True, parent=True )
if (parents <> None) and isRigRoot(parents[0]):
result.append(parents[0])


with something that is not a string[].

If you want to troubleshoot this, you could start with trying to see what

cmds.listRelatives('frontShape', path=True, parent=True )

returns

CGTalk Moderation
11-11-2010, 04:09 PM
This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.