get material name from Compound's PPG

Discussions concerning programming of SOFTIMAGE©
Post Reply
User avatar
Loki
Posts: 12
Joined: 19 Jun 2009, 17:07

get material name from Compound's PPG

Post by Loki » 14 Aug 2013, 08:29

Hi all

I have a material with a Compound node nested on it.
Anyone know if there is a way to retrieve the material name from the Compound's PPGLogic?

Thanks,
Loki
(sorry for my english)

User avatar
xsisupport
Posts: 713
Joined: 09 Jun 2009, 11:02
Location: Montreal Canada
Contact:

Re: get material name from Compound's PPG

Post by xsisupport » 14 Aug 2013, 13:39

Go through PPG.Inspected
// Steve Blair
// "You're not a runner, you're just a guy who runs" -- my wife
//
// My Blogs: Arnold | Softimage

User avatar
Loki
Posts: 12
Joined: 19 Jun 2009, 17:07

Re: get material name from Compound's PPG

Post by Loki » 14 Aug 2013, 17:19

Thanks a lot, it works now!

I found also another way using: PPG.name_of_inner_node.Parent
It return the exact position of the Compound on the shader.
(sorry for my english)

Post Reply

Who is online

Users browsing this forum: No registered users and 34 guests