Animation Layer naming got stripped

17 views
Skip to first unread message

kiteh

unread,
Mar 5, 2020, 2:14:40 PM3/5/20
to Python Programming for Autodesk Maya
2 Animation Layers in my scene - "BaseAnimation" and "testing:AnimLayer1"

While trying to query all the existing animation layers in the scene:
for layer in cmds.ls(type="animLayer"):
   
print layer
   
# BaseAnimation
   
# AnimLayer1

I was expecting "testing:AnimLayer1" as part of the result but instead of that, I got a 'stripped' naming.

Am I using the wrong arguments/ wrong command? Or is this part of Maya's design?

Justin Israel

unread,
Mar 5, 2020, 2:20:02 PM3/5/20
to python_in...@googlegroups.com
There are more flags to the ls command that you can use:


absoluteName, long, showNamespace

--
You received this message because you are subscribed to the Google Groups "Python Programming for Autodesk Maya" group.
To unsubscribe from this group and stop receiving emails from it, send an email to python_inside_m...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/python_inside_maya/f6869768-af26-4b09-b2df-b99376e1467a%40googlegroups.com.

kiteh

unread,
Mar 5, 2020, 2:35:59 PM3/5/20
to Python Programming for Autodesk Maya
Hey Justin,

Thanks for getting back.

I may have omitted this piece of information, so "testing:AnimLayer1" ("testing" is not a namespace to begin with)
Also tried the method you suggested - adding in more flags, I am not "testing" as part of the results.

Most of the results are only returning me "AnimLayer1", "BaseAnimation" or ":"

On Thursday, March 5, 2020 at 11:20:02 AM UTC-8, Justin Israel wrote:


On Fri, Mar 6, 2020, 8:14 AM kiteh <kite...@gmail.com> wrote:
2 Animation Layers in my scene - "BaseAnimation" and "testing:AnimLayer1"

While trying to query all the existing animation layers in the scene:
for layer in cmds.ls(type="animLayer"):
   
print layer
   
# BaseAnimation
   
# AnimLayer1

I was expecting "testing:AnimLayer1" as part of the result but instead of that, I got a 'stripped' naming.

Am I using the wrong arguments/ wrong command? Or is this part of Maya's design?

There are more flags to the ls command that you can use:


absoluteName, long, showNamespace

--
You received this message because you are subscribed to the Google Groups "Python Programming for Autodesk Maya" group.
To unsubscribe from this group and stop receiving emails from it, send an email to python_inside_maya+unsub...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages