ADOBE AFTER EFFECTS: Forum Expressions Tutorials Creative Cloud

Layer Position value at Marker?

COW Forums : Adobe After Effects Expressions

<< PREVIOUS   •   FAQ   •   VIEW ALL   •   PRINT   •   NEXT >>
Kevin Snyder
Layer Position value at Marker?
on Apr 13, 2018 at 7:28:13 pm

If I have two layers (Layer One and Layer Two), is it possible to place an expression on Layer One's position to match Layer's Two Position value based on a marker with a specific comment that is on Layer One?


Return to posts index

Kevin Snyder
Re: Layer Position value at Marker?
on Apr 13, 2018 at 7:35:04 pm

Also, as Layer Two animates the position value, the value for position for Layer One remains the same....whatever the value is at the time of the marker.


Return to posts index

Dan Ebberts
Re: Layer Position value at Marker?
on Apr 13, 2018 at 8:05:40 pm

Something like this maybe:


try{
t = marker.key("comment").time;
}catch(e){
t = 0;
}
thisComp.layer("Layer 2").position.valueAtTime(t)



Dan



Return to posts index


Kevin Snyder
Re: Layer Position value at Marker?
on Apr 13, 2018 at 9:06:31 pm

Awesome! Thanks, Dan. I appreciate it. Works perfectly.

Kevin


Return to posts index

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