ls -type shadingEngine equivalent in api

77 views
Skip to first unread message

haggi

unread,
Aug 12, 2010, 4:17:13 PM8/12/10
to python_inside_maya
Fortunatly I can use ls(type = "shadingEngine") to list all shading
enginen nodes, but what is the Equivalent of this command in the
python maya api? MItDag() only gives me shapes and transforms.

Any ideas?

Thanks a lot.

Dillon B

unread,
May 25, 2012, 1:13:39 PM5/25/12
to python_in...@googlegroups.com
it = OpenMaya.MItDependencyNodes(OpenMaya.MFn.kShadingEngine)
sel = OpenMaya.MSelectionList()

Justin Israel

unread,
May 25, 2012, 3:29:39 PM5/25/12
to python_in...@googlegroups.com
I wonder if "haggi" figured this out already, 2 years later ;-)


Judah Baron

unread,
May 25, 2012, 10:01:29 PM5/25/12
to python_in...@googlegroups.com
Hey, there's no expiration date on being right. lol.

dgovil

unread,
May 26, 2012, 3:26:39 PM5/26/12
to python_inside_maya
Plus it's good to have the answer up for anyone else looking.

Justin Israel

unread,
May 26, 2012, 3:51:12 PM5/26/12
to python_in...@googlegroups.com, python_in...@googlegroups.com
Ya thats true. Its not like the 10 second come back rule, where you have a short window of time to snap someone back before its locked in. 


Reply all
Reply to author
Forward
0 new messages