PDA

View Full Version : Simple script to Set RPMMaterial... Help needed...


stilgarna
10-25-2006, 08:12 AM
Hello Guys....

My script's ability sucks... :shrug:and I want to do a simple script :

I'm using RPManager with RPMMaterial, this material help you assigning a by pass Material

http://www.rpmanager.com/

The material's "node" name is : RPMMaterial (like Standard or )
And their is a attribute that I like to modify : .wishpass

What I want is to set all the RPMMaterial.wishpass in my scene to 1 or 2 etc...

Can someone help me... Please...


Best regards...

stilgarna
10-25-2006, 08:47 AM
Thanks a lot guys but I found the aswer :

--
for i in objects where isproperty i #material AND classof i.material == RPMMaterial do
i.material.whichpass = 5
--

Bye...

CGTalk Moderation
10-25-2006, 08:47 AM
This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.