ADOBE AFTER EFFECTS: Forum Expressions Tutorials Creative Cloud

Get parent layer of a property Scripting

COW Forums : Adobe After Effects Expressions

<< PREVIOUS   •   FAQ   •   VIEW ALL   •   PRINT   •   NEXT >>
Miguel de Mendoza
Get parent layer of a property Scripting
on Jun 8, 2018 at 9:55:11 am

Hi, if I have a layer property, is posible to get the layer that contains that property?


Return to posts index

Dan Ebberts
Re: Get parent layer of a property Scripting
on Jun 8, 2018 at 4:07:18 pm

With scripting? I think something like this would work:

var myLayer = myProperty.propertyGroup(myProperty.propertyDepth);


Dan



Return to posts index

Miguel de Mendoza
Re: Get parent layer of a property Scripting
on Jun 8, 2018 at 9:20:52 pm

Thanks Dan, thats what a i was looking for.
It's a little confusing,in the documentation says tha propertyGroup() return null if it reaches the containing layer. Anyway, it works.


Return to posts index

<< PREVIOUS   •   VIEW ALL   •   PRINT   •   NEXT >>
© 2018 CreativeCOW.net All Rights Reserved
[TOP]