On Tuesday, March 19, 2013 2:38:08 AM UTC+5:30, Jesse Capper wrote:
> Is there a way to listConnections and only return shaders? Or 2d textures? I 
> know I can specify an exact type like 'surfaceShader', but can I do something 
> like 'material', or 'shader'? Or do I just have to get all the connections 
> and filter them afterwards?
> 
> Desired use would be something like: cmds.listConnections(sg, d=False, 
> type='shader/surface')

If you have geometry shapes with you, then you can go through the connections 
to find the ShadingEngine, from that the shader attached to the geometry.

-- 
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 [email protected].
To post to this group, send email to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to