Page 1 of 1

"Select Orphans" does not detect shaders with maps connected

Unread postPosted: Mon Oct 07, 2019 6:35 am
by jchoicgi
I am currently looking for a way to clean up the unused shaders in Clarisse. I know that Clarisse already has "Select Orphans" function for the exact purpose but the thing is, it is not enough for me!
Usually, shaders in the scene have some sort of maps connected to it. And "Select Orphans" function thinks that the shader is being used, which is not the case.
Are there any ways or workarounds to mitigate this problem? Or even better, are there any plans for improving the "Select Orphans" function?


Re: "Select Orphans" does not detect shaders with maps conne

Unread postPosted: Mon Oct 07, 2019 8:57 am
by dboude

"Select Orphans" button... selects orphans. :mrgreen: If you have a map connected to a shader, the shader isn't an orphan. Orphans are nodes without any connections to other objects.

You can achieve what you want with a script by testing if a shader has an output object or not.

This function select next output, if the shader is still selected it means that it hasn't any output/isn't connected to an object.
Code: Select all

Be careful, materials applied by shading layer rules are considered without any output...

Cheers ;)