Thanks! I completely overlooked GetAllShaders...

Am 15.01.2014 19:34, schrieb Matt Lind:

var oLight = Selection(0);

var oShaders = oLight.GetAllShaders();

LogMessage( oShaders.GetAsText() );

Matt

*From:*[email protected] [mailto:[email protected]] *On Behalf Of *Felix Geremus
*Sent:* Wednesday, January 15, 2014 3:58 AM
*To:* [email protected]
*Subject:* Get unconnected shaders in a light

Hi List!

Does anybody know a way of getting all shaders, even unconnected ones inside a light? Both/light.Shaders/ and /light.FindShaders(constants.siShaderFilter)/ only return connected shaders. I've found this solution for materials: http://xsisupport.com/2013/07/17/finding-disconnected-shader-nodes/
But it seems that GetConnectionStackInfo doesn't work for lights....

Cheers,

Felix


Reply via email to