Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions I need to display a point on an x/y axis

  • I need to display a point on an x/y axis

    Posted by Chris Gulliford on September 12, 2014 at 4:36 pm

    The x and the y will come from two arrays or one array that every other item is either the x or the y component. The point will move every six frames (30 fms). I’ve got a solution for handling the time element, but have no idea now to accomplish setting the point.

    Any assistance would be greatly appreciated.

    Thanks.

    Chris Gulliford replied 11 years, 10 months ago 2 Members · 2 Replies
  • 2 Replies
  • Dan Ebberts

    September 12, 2014 at 5:11 pm

    I guess I’d do it something like this:

    posArray = [0,100,100,200,200,300];
    idx = Math.min(Math.floor(timeToFrames(time)/6)*2,posArray.length-2);
    [posArray[idx],posArray[idx+1]]

    Dan

  • Chris Gulliford

    September 12, 2014 at 8:07 pm

    Absolutely terrific.

    Thanks so much for your help!!!

    Have a great weekend.

We use anonymous cookies to give you the best experience we can.
Our Privacy policy | GDPR Policy