Isotropix Forums

Get layer parent image

Discuss about expressions in Clarisse

Get layer parent image

Unread postby stheroux » Tue Aug 06, 2019 5:12 pm

Hi,

Just getting started with se-expr and it's great so far. I'm now trying to get the name of an image from one of its embedded layer.

I can get the name of the layer itself through "get_name()" or its context through "get_context()". But I cant find a way to access it's image as it is not exposed as an attribute on the layer. Something like get_parent_item() in python.

I can have it work through find_item() when i have only one image per context but thats not our projects structure.

Any help appreciated.

Thanks
Sylvain
stheroux
 
Posts: 89
Joined: Thu Jan 15, 2015 9:23 pm

Re: Get layer parent image

Unread postby dcourtois » Wed Aug 07, 2019 9:36 am

Hi,

That's currently not possible. You might want to fill a feature request for a "get_parent" SeExpr function or something similar :)
Maybe there's some workarounds though. What are you trying to do exactly ?

Damien.
User avatar
dcourtois
 
Posts: 55
Joined: Tue Jul 25, 2017 3:15 pm

Re: Get layer parent image

Unread postby stheroux » Wed Aug 07, 2019 1:12 pm

Hi Damien,

Just trying to fully dynamically setup render paths base on image and layer names. We have a scripted workaround in place since starting using clarisse but i was hoping to replace it with the expression system. Currently artist need to manually hit a button to setup their paths everytime an image or layer name changes.

No big deal, well keep using what we have for now and ill make a feature request.

Thanks
Sylvain
stheroux
 
Posts: 89
Joined: Thu Jan 15, 2015 9:23 pm


Return to Expressions