Isotropix Forums

"Select Orphans" does not detect shaders with maps connected

General Discussion about Isotropix and CG related topics

"Select Orphans" does not detect shaders with maps connected

Unread postby jchoicgi » Mon Oct 07, 2019 6:35 am

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?

Posts: 9
Joined: Mon Oct 07, 2019 4:17 am

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

Unread postby dboude » Mon Oct 07, 2019 8:57 am


"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 ;)
Technical Artist - Clarisse Specialist
User avatar
Posts: 1508
Joined: Mon Jul 03, 2017 10:51 am

Return to General Discussion