Scripting : find a shader, how to select the material it belong to ? 2005-02-26 - By Alan Jones
Back Just .parent your way up until you hit a material. I can't remember off the top of my head how to test if it's a material, but it should be pretty easy to find out in the docs.
Cheers,
Alan.
On Sat, 26 Feb 2005 23:09:11 +0100, Guillaume Laforge <guillaume.laf@(protected)> wrote: > > Hi, > > I'm writing a script who collect some specific shaders. I need to select > the materials. I can't find the good method. > > "SelectNeighborObj" command or the ".parent" can't work because the shaders > are at different places in the render tree. > > For example, in this render tree : > > THE phong > mix2colors > My material > > how to select "My material" if I collect "THE phong" in an XSI collection ? > > > Cheers, > > Guillaume Laforge > CG artist > www.vol2nuit.fr > > --- Unsubscribe? Mail Majordomo@(protected) with the following text in body: unsubscribe xsi
|
|