FORUMS TUTORIALS FEATURES VIDEOS PODCASTS EVENTS SERVICES NEWSLETTER NEWS BLOGS
 ADOBE AFTER EFFECTS: Home Forum Basics Expressions Tutorials Podcasts AE Techniques Creative Cloud Debate FAQ

# after effects

COW Forums : Adobe After Effects Expressions

<< PREVIOUS   •   FAQ   •   VIEW ALL   •   PRINT   •   NEXT >>
 after effects by verita on Dec 17, 2006 at 4:54:47 am

hello creative cows,

I would be happy about getting tips for this problem:
I try to circle an object (planetball) with keyframes in xyz-position manner.
Can't find solution between the first and last keyframe to get a loop without
getting a visible break between start and end of movement in my ramshow.
knowledge?
Thankyou for every tip

with best greetings
verita

 Re: after effectsby Colin Braley on Dec 17, 2006 at 6:14:54 am

Just make sure the position value of your last keyframe is equal to that of your first keyframe. Then apply the following expression:

loopOut("cycle")

~Colin

 Re: after effectsby yikesmikes on Dec 17, 2006 at 6:18:19 am

If you have one revolution keyframed, and the first and last keyframes are the same you might try this loop expression:

loop_out("cycle",0)

But to get circular movement without keyframes, expression only, try this expression on position by Dan Ebberts (there are other expressions but I think this is the most controlable):

r = 50; //radius (in pixels)
f = 1; //orbits per second

angle = time*Math.PI*2*f;
value + [Math.sin(angle)*r, -Math.cos(angle)*r]

Just change the radius and orbit per second to taste.

 Re: after effectsby Steve Roberts on Dec 17, 2006 at 11:40:03 am

... and you should set your work area to end 1 frame before the loop starts again.

For example, if frame 0 is the same as frame 50, the last frame of the work area should be 49.

 Re: after effectsby verita on Dec 19, 2006 at 1:39:38 am

hello steve,

my first step to a forum.
Thank you much.

I've got blind of checking and after reading your
message I could therefore finalley find my mistakes.
Two mistakes, forgot realley this time-management

Wish you a very good ending year with best with best
2007 wishes
Verita

 Re: after effectsby verita on Dec 19, 2006 at 5:02:06 pm

[verita] "hello steve,

my first step to a forum.
Thank you much.

I've got blind of checking and after reading your
message I could therefore finalley find my mistakes.
Two mistakes, forgot realley this time-management

Wish you a very good ending year with best 2007 wishes
Verita"

[verita] "hello steve,

my first step to a forum.
Thank you much.

I've got blind of checking and after reading your
message I could therefore finalley find my mistakes.
Two mistakes, forgot realley this time-management

Wish you a very good ending year with best with best
2007 wishes
Verita"