PDA

View Full Version : wrong objectnames when using python-cmds


Borgus
08-19-2009, 12:56 PM
Hi guys! i'm not so deep into python for maya but i've found out a strange behavior when
using the spotLight command (python)

problem:
spLight = cmds.spotLight(n='spam')
# Result: spotLightShape1 #

the strange thingis that the python creates a spotlight with the correct name (for the transfrom- and shapenode).
you could say that you already know the right name (spam) of the light, but when
an object with the same name exists, the lights name is 'spam1'. (and python gives
me the name 'spotLightShape2' back.

maybe i'm just too stupid...:) ...or its a bug?

regards, basti

CGTalk Moderation
08-19-2009, 12:56 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.