get material name from Compound's PPG

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

get material name from Compound's PPG

Post by Loki » 14 Aug 2013, 06: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, 09:02
Location: Montreal Canada

Re: get material name from Compound's PPG

Post by xsisupport » 14 Aug 2013, 11: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, 15:07

Re: get material name from Compound's PPG

Post by Loki » 14 Aug 2013, 15: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)