FORUMS: list search recent posts

expression using markers to animate position not working

COW Forums : Adobe After Effects

<< PREVIOUS   •   FAQ   •   VIEW ALL   •   PRINT   •   NEXT >>
mel ruiz
expression using markers to animate position not working
on Aug 8, 2018 at 8:29:03 pm

I'm trying to have the position of a shape follow a null between two markers on a marker layer. (So, I have a shape layer, a null for movement and another null with markers on it.

I used the expression below for the position of my shape layer, but even though this position:
thisComp.layer("ball control").transform.position.valueAtTime(endTime)
isn't changing after the endTime, the shape moves once the null object moves after that time.

Any idea what's happening? Thanks so much!


beginTime = thisComp.layer("MARKERS").marker.key("beginTime1").time;
endTime = thisComp.layer("MARKERS").marker.key("endTime1").time;

if (time < beginTime)
thisComp.layer("ball control").transform.position.valueAtTime(beginTime)
else if (beginTime <= time < endTime)
thisComp.layer("ball control").transform.position
else
thisComp.layer("ball control").transform.position.valueAtTime(endTime)


Return to posts index

Kalleheikki Kannisto
Re: expression using markers to animate position not working
on Aug 9, 2018 at 12:43:39 pm
Last Edited By Kalleheikki Kannisto on Aug 9, 2018 at 12:47:50 pm

Modify you "else if" like this

else if (beginTime <= time && time < endTime)

As I understand it, only the first part of the else if comparison (beginTime<=time) was evaluated the way you had it written.

Kalleheikki Kannisto
Senior Graphic Designer


Return to posts index

mel ruiz
Re: expression using markers to animate position not working
on Aug 9, 2018 at 3:47:35 pm

worked! thanks. : )


Return to posts index

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