Centering The Origin Of A Shape

Wondering how to accomplish a certain animation task? Ask here.

Moderators: Víctor Paredes, Belgarath, slowtiger

Post Reply
User avatar
drumlug13
Posts: 537
Joined: Sun May 22, 2011 9:16 pm
Location: Beautiful St. Louis, MO

Centering The Origin Of A Shape

Post by drumlug13 »

Hello Ladies & Gents .....

I'm doing some more incredibly cheesy spinning graphics and I need to find the precise center of a shape. Is there a way to select a shape and set origin at the exact center?


.... the future of mankind hangs in the balance...
SvenFoster
Posts: 400
Joined: Mon Jun 13, 2011 10:50 am
Location: stephen.foster.uk(skype)

Post by SvenFoster »

You need a script young Jedi
--Sven
What *if* the Hokey cokey *is* what its all about?
User avatar
drumlug13
Posts: 537
Joined: Sun May 22, 2011 9:16 pm
Location: Beautiful St. Louis, MO

Post by drumlug13 »

Ahhhhh .... Those have become the 4 words I love the most.

Thank you sir.
User avatar
GCharb
Posts: 2202
Joined: Mon Oct 10, 2005 2:31 am
Location: Saint-Donat, Quebec, Canada
Contact:

Post by GCharb »

You could select the shape points, activate the move point tool and enter 0 and 0 in the x and y fields, that usually brings the selected points in the middle of the screen.

Then do the same with the center of origin if you moved it.

From there use layer animation, which should preserve the center of origin in the middle of the shape.

You would of course need to make a different layer for each moving parts!
User avatar
funksmaname
Posts: 3174
Joined: Tue May 29, 2007 11:31 am
Location: New Zealand

Post by funksmaname »

if you used a bone, you could center an vector X over the shape, then pull a bone from the center point to the edge which will give you a pradictible rotation.



...did i just say 'pull a bone'? :oops:
jonbo
Posts: 896
Joined: Thu Apr 08, 2010 2:53 am

Post by jonbo »

That's a great idea Funk, and much easier than trying to script that.
User avatar
ulrik
Posts: 1087
Joined: Thu Aug 11, 2005 10:32 pm
Location: Stockholm Sweden
Contact:

Post by ulrik »

If you search for "macton" scripts here in the forum, there is a script called "CC: selected vector layers - center to points"
It's working here in AS pro 8
User avatar
drumlug13
Posts: 537
Joined: Sun May 22, 2011 9:16 pm
Location: Beautiful St. Louis, MO

Post by drumlug13 »

Thanks guys
Post Reply