Select all materials in model
-
EricTRocks
- Moderator
- Posts: 754
- Joined: 25 Nov 2009, 00:41
Re: Select all materials in model
Yup. It's the only way you're going to learn.
-
Falam
Re: Select all materials in model
Code: Select all
oRoot = ActiveSceneRoot;
SetValue oChild = oRoot.FindChildren;
SetValue oModel = oChild.Filter('Model1')
oModel = Shader.ProgIDIt'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.