View Single Post
# 1 15-03-2013 , 09:48 AM
Falott's Avatar
Registered User
Join Date: Jan 2005
Location: vienna
Posts: 1,095

apply shader to all object instances

this might be a simple task but I didn´t find any working solution yet - please help!

task: select lots of objects and all their instances via script. then apply a shader.

what I have so far:

if (objExists("geo_test" + "*"))
    select -hi ("geo_test" + "*");      
    string $sel[] = `ls -sl -ap`;
        for ($item in $sel)
            sets -e -forceElement testSG;
    select -cl  ;

unfortunately I can´t figure out how to select all the instances too. only the parents get shaded :/

everything starts and ends in the right place at the right time.