FORUMS: list search recent posts

expression question. Layer position data vs composition position data

COW Forums : Adobe After Effects

<< PREVIOUS   •   FAQ   •   VIEW ALL   •   PRINT   •   NEXT >>
Michael Miller
expression question. Layer position data vs composition position data
on Oct 18, 2017 at 9:19:45 pm

I have a point control on a layer with a different size from my comp. I'm trying to tie a null to it but its only setting my position based on the point controls position on the layer, not within the comp, so my null is placed relative to the composition rather than the layer. What's my fix?
Maybe if I reference the layers size and subtract the difference from the anchor points position? That's a lot of math. Is there an easier way? Thanks




Return to posts index

Walter Soyka
Re: expression question. Layer position data vs composition position data
on Oct 18, 2017 at 11:02:17 pm

Use the toComp() method to get the point in composition space:

l = thisComp.layer("White Solid 2");
l.toComp(l.effect("Truck location")("3D Point"));


Walter Soyka
Designer & Mad Scientist at Keen Live [link]
Motion Graphics, Widescreen Events, Presentation Design, and Consulting
@keenlive [twitter]   |   RenderBreak [blog]   |   Profile [LinkedIn]


Return to posts index

Michael Miller
Re: expression question. Layer position data vs composition position data
on Oct 19, 2017 at 12:09:38 am

You did it!! I was having issues with toComp.effect I had to put it in (). This drove me crazy for 2 hours. Everything was giving me info for conforming the anchor points of the layer not the effect.

Thanks


Return to posts index

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