How to 'ls' shading group node?

How to 'ls' shading group node?

g2m.agent
Collaborator Collaborator
3,002 Views
1 Reply
Message 1 of 2

How to 'ls' shading group node?

g2m.agent
Collaborator
Collaborator

I want to list all shading group node, the manuals said:

 

materials(mat) boolean
List materials or shading groups.

 

so my script is:

 

import maya.cmds as cmds
cmds.ls(mat=True)

 

the result is:

# Result: [u'lambert1',
u'particleCloud1',
u'blinn2'] #

there is no SG node at all.

why??

0 Likes
Accepted solutions (1)
3,003 Views
1 Reply
Reply (1)
Message 2 of 2

chaneyx
Advocate
Advocate
Accepted solution

in MEL: 
ls -type "shadingEngine"