FORUMS: list search recent posts

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

COW Forums : Adobe After Effects Expressions

<< PREVIOUS   •   FAQ   •   VIEW ALL   •   PRINT   •   NEXT >>
chris gulliford
I need to display a point on an x/y axis
on Sep 12, 2014 at 4:36:15 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.


Return to posts index

Dan Ebberts
Re: I need to display a point on an x/y axis
on Sep 12, 2014 at 5:11:49 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



Return to posts index

chris gulliford
Re: I need to display a point on an x/y axis
on Sep 12, 2014 at 8:07:01 pm

Absolutely terrific.

Thanks so much for your help!!!

Have a great weekend.


Return to posts index

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