help, circular trajectorie expr. no modify the orientation.

Moderators: Disciple, zlovatt

Post Reply
brigante
Posts: 5
Joined: May 28th, 2008, 10:24 am

Hellow, guys and gals:

I´m a ae user from spain and my english is not very good bad i´m gonna try to explain it with my english without use some
english translator. Thanks everybody¡¡

I know I need read any javascript guide before learn making express. bad I usually need make circular trajectories for several objects but i dont want they lose their orientation, that is, I dont want they rote, only that they displace along x, y space
maintaining their original position. Some body Know about it?

By the way, anybody know if there are academy, university or so on that offers masters, studies about expressions in Europe?

I make this questions because I and my jobpartner are very insteresting in it and we are try to organized a course for my
company.

Thanks a lot and greetings from Spain.
User avatar
Atomic
Posts: 157
Joined: April 30th, 2007, 5:55 am
Location: United States, Ohio

"Up And Atom

No...No

Up And At Them!"
Dan Ebberts
Posts: 320
Joined: June 26th, 2004, 10:01 am
Location: Folsom, CA
Contact:

You could use a trig expression for the motion and the layer won't rotate:

center = [thisComp.width, thisComp.height]/2;
radius = 50;
freq = 1;
angle = time*freq*Math.PI*2;
center + [Math.sin(angle), -Math.cos(angle)]*radius


Or, you could parent the layer to a null positioned at the center of the circle and add a counter-rotation expression to your layer's rotation property:

if (hasParent){
-parent.rotation
}else{
value
}

Then just rotate the null.


Dan
brigante
Posts: 5
Joined: May 28th, 2008, 10:24 am

Hellow guys:

Dan, I ´ve been practising with your expressions and I have getted the results I was looking for.
Very grateful for your help and excuse for don´t reply before but Last weekI was very bussy in my work and
besides was moving so I couldn´t.
Thanks Atomic too.
I saw "the definitive guide of JavaScript of David Flanaghan", (is te guide that AE recommend) to study the chapters that the web motionsripts suggests is required to make expressions. The questions is:
Is this guide oriented to AE more than any other? or can I learn with some other too, I tell you this because
it cost 77 € I don´t mind if is necessary but is expensive, what do you advice?

Grateful, see you in the forum.
Dan Ebberts
Posts: 320
Joined: June 26th, 2004, 10:01 am
Location: Folsom, CA
Contact:

It's the one I use, but like any JavaScript guide, it has a lot of web-specific stuff you'll probably never use. I'm sure there are other good guides out there, but I'm not familiar with them.


Dan
Post Reply