cmds.ls(sl=True, type = 'transform')
This works for any node type (the list is quite long: it's basically the whole maya node class hierarchy) and is a handy way to
However I just noticed today that this works a little for component selections as well. For some reason Maya 2014+ seems to treat faces, edges and vertices as if they were nodes of a "float3" type (uv's are "float2"s) . This means you can get the components from a mixed selection with:
cmds.ls(sl=True, type = 'float3')
Not the most earth-shattering discovery of the 21st century, but handy nonetheless.
No comments:
Post a Comment