ADOBE AFTER EFFECTS: Forum Expressions Tutorials Creative Cloud

Parent effect to X-Axis of Anchor Point

COW Forums : Adobe After Effects Expressions

<< PREVIOUS   •   FAQ   •   VIEW ALL   •   PRINT   •   NEXT >>
Topher Blair
Parent effect to X-Axis of Anchor Point
on Mar 25, 2017 at 12:19:45 am

I need to pickwhip an effect specifically to the X-axis of the anchorpoint of the same layer. If I try using this code,
thisLayer.anchorPoint
then After Effects comes back with "array piece can't expand to more than one value."
I assume that there's a way around this, but I don't know how to tell it to only look for one axis.

Thanks!


Return to posts index

Dan Ebberts
Re: Parent effect to X-Axis of Anchor Point
on Mar 25, 2017 at 3:09:40 am

Try this:

thisLayer.anchorPoint[0]


Dan



Return to posts index

Topher Blair
Re: Parent effect to X-Axis of Anchor Point
on Mar 25, 2017 at 10:10:31 pm

Yep, that did it, thanks! Is there a similar code to parent to the y-axis?


Return to posts index


Dan Ebberts
Re: Parent effect to X-Axis of Anchor Point
on Mar 25, 2017 at 10:13:52 pm

thisLayer.anchorPoint[1]

Dan



Return to posts index

Topher Blair
Re: Parent effect to X-Axis of Anchor Point
on Mar 25, 2017 at 10:43:42 pm

Thanks again!


Return to posts index

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