ADOBE AFTER EFFECTS: Forum Expressions Tutorials Creative Cloud

Rotating around an anchor but keeping object upright

COW Forums : Adobe After Effects

<< PREVIOUS   •   FAQ   •   VIEW ALL   •   PRINT   •   NEXT >>
John Shand
Rotating around an anchor but keeping object upright
on Jul 18, 2012 at 11:04:32 am

Hi all,

I have a set of shapes that i want to move around the screen but maintain its upright position when it is rotating.
At the moment I have put the anchor point in the centre of the comp but when I rotate the object, the shape turns with it. There is text within the shape that is why I want to maintain its upright position so it is easy to read.

I hope this makes sense to anyone.

I found this example which might help you understand what I'm trying to achieve.

http://www.hypertransport.org/images/productsMain2.jpg


Return to posts index

John Cuevas
Re: Rotating around an anchor but keeping object upright
on Jul 18, 2012 at 11:45:50 am

Assuming you arranged your shapes in the comp and parented them to a null object in the center of the screen. Open up the rotation property of of one your objects and "alt + click" to open the expression editor. Type in "-(" then pick whip to the null's rotation property. Finally close the expression with another ")". You should get this:

-(thisComp.layer("Null 1").transform.rotation)

Simply you are telling your objects to rotate the exact opposite way the parent is rotating.

Here it is in action: 4411_rotationexpression.aep.zip

Johnny Cuevas, Editor
Thinkck.com

"I have not failed 700 times. I have succeeded in proving that those 700 ways will not work. When I have eliminated the ways that will not work, I will find the way that will work."
---THOMAS EDISON on inventing the light bulb.


Return to posts index

John Shand
Re: Rotating around an anchor but keeping object upright
on Jul 18, 2012 at 12:08:52 pm

John,

Thank you so much for your time.
The effect you made is exactly what I want.
I applied the same expression to my image but my result was that it was rotating in an opposite direction but was not keeping upright like your text.

Did I miss something?

Thanks again.


Return to posts index


John Cuevas
Re: Rotating around an anchor but keeping object upright
on Jul 18, 2012 at 12:55:04 pm

You need to explain your setup a bit more, when you say you applied the expression to an "image", are you just working with one layer? The method I used works when you have multiple objects parented to a single controller in the middle of the comp.

If you have one layer, you would need to break the layer into individual components, parent them to a control in the middle of the composition(null) and then apply the expression.

Johnny Cuevas, Editor
Thinkck.com

"I have not failed 700 times. I have succeeded in proving that those 700 ways will not work. When I have eliminated the ways that will not work, I will find the way that will work."
---THOMAS EDISON on inventing the light bulb.


Return to posts index

John Cuevas
Re: Rotating around an anchor but keeping object upright
on Dec 6, 2012 at 12:30:14 pm

Did that answer your question

Johnny Cuevas, Editor
Thinkck.com

"I have not failed 700 times. I have succeeded in proving that those 700 ways will not work. When I have eliminated the ways that will not work, I will find the way that will work."
---THOMAS EDISON on inventing the light bulb.


Return to posts index

John Shand
Re: Rotating around an anchor but keeping object upright
on Dec 6, 2012 at 1:23:49 pm

Hi John,
Sorry for the late response I just completely forgot. Yes that worked perfect. Thanks for your help and time.


Return to posts index


John Cuevas
Re: Rotating around an anchor but keeping object upright
on Dec 15, 2012 at 1:44:22 pm

Then I'm glad I was able to help.

Johnny Cuevas, Editor
Thinkck.com

"I have not failed 700 times. I have succeeded in proving that those 700 ways will not work. When I have eliminated the ways that will not work, I will find the way that will work."
---THOMAS EDISON on inventing the light bulb.


Return to posts index

Lyubo Yanev
Re: Rotating around an anchor but keeping object upright
on Aug 6, 2015 at 7:49:58 am

Thanks! Exactly what I was searching for too!!


Return to posts index

Manuel Madariaga
Re: Rotating around an anchor but keeping object upright
on Nov 17, 2015 at 9:22:45 pm

Thaks John, you just saved me a lot of time ;)


Return to posts index

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