Isotropix Forums

Expressions - get name of object material is applied to

Clarisse Scripting related topics

Expressions - get name of object material is applied to

Unread postby ruchirlives » Thu Jul 16, 2020 9:16 am

Is it possible within an expression get the name of the geometry object that a material or better still a map within that material is applied to?
I have a material Tree_shader applied to 10 trees using a shading layer.
I'd like to get access to the name of the specific tree the shader is applied to within an expression of file field of the map.
ruchirlives
 
Posts: 8
Joined: Wed Mar 13, 2013 12:14 am

Re: Expressions - get name of object material is applied to

Unread postby dboude » Thu Jul 16, 2020 1:52 pm

Hi,

With expressions no. But I guess you could retrieve the shading layer rule with a python script and select the objects that are resolved in the shading layer rule.

Cheers
Démian
Isotropix
Technical Artist - Clarisse Specialist
User avatar
dboude
 
Posts: 1571
Joined: Mon Jul 03, 2017 10:51 am

Re: Expressions - get name of object material is applied to

Unread postby ruchirlives » Thu Jul 16, 2020 5:16 pm

Ok. Sounds like a job for python scripting, but I’m in PLE so I’d guess that won’t be possible.
ruchirlives
 
Posts: 8
Joined: Wed Mar 13, 2013 12:14 am

Re: Expressions - get name of object material is applied to

Unread postby dboude » Fri Jul 17, 2020 12:51 pm

Object selection is limited to 10 in PLE version. You can do it ;)

Cheers
Démian
Isotropix
Technical Artist - Clarisse Specialist
User avatar
dboude
 
Posts: 1571
Joined: Mon Jul 03, 2017 10:51 am


Return to Scripting