Select all materials in model

Discussions concerning programming of SOFTIMAGE©
EricTRocks
Moderator
Posts: 754
Joined: 25 Nov 2009, 01:41
Contact:

Re: Select all materials in model

Post by EricTRocks » 30 Jun 2013, 21:44

Yup. It's the only way you're going to learn.
Eric Thivierge
Lead Kraken Developer, Fabric Engine
http://fabric-engine.github.io/Kraken

Falam

Re: Select all materials in model

Post by Falam » 01 Jul 2013, 00:20

Code: Select all

oRoot = ActiveSceneRoot;
SetValue oChild = oRoot.FindChildren;
SetValue oModel = oChild.Filter('Model1')
oModel = Shader.ProgID
Ugly but gobbledegook was acceptable

It's not complete, what I could scratch together. The purpose of the script is to select all the materials within a model, that don't contain a specific node within it's material, which could be inserted in the code or a prompt could ask for the node name or ProgID to search for.

Post Reply

Who is online

Users browsing this forum: No registered users and 18 guests