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
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
