I don't see any reason why you need to script this.  You can do what you need 
in a couple of clicks in a multi-selection regardless of size.



Matt




From: [email protected] 
[mailto:[email protected]] On Behalf Of Eric Lampi
Sent: Monday, September 10, 2012 11:56 AM
To: [email protected]
Subject: Re: object center orientation

There are over 1685 objects with no null parent, they already had a center at 
vertices.

I was just making sure there wasn't an operation available before I ventured 
into scripting something, thanks anyway.

On Mon, Sep 10, 2012 at 2:25 PM, Matt Lind 
<[email protected]<mailto:[email protected]>> wrote:
What?  ICE doesn't solve this out of the box?

Try this:

1) Select all globe pieces.
2) MCP > Transform > Move Centers to Vertices
3) Create a null at the center of the globe.
4) Set select filter to "Center".
5) Apply direction constraint to each globe piece picking null at center of 
globe as the target.  Choose desired axis, then remove constraint.
5) Make globe pieces child of this null.

Animate the null to rotate the globe pieces.


Matt






From: 
[email protected]<mailto:[email protected]>
 
[mailto:[email protected]<mailto:[email protected]>]
 On Behalf Of Eric Lampi
Sent: Monday, September 10, 2012 11:06 AM
To: [email protected]<mailto:[email protected]>
Subject: Re: object center orientation


It's a globe, and all the rotations of these pieces are pointing towards global 
0 x,y,z, the y axis needs to point outward in relation to the center, much like 
the normal of all of the polys on a sphere. There are 1000 pieces, so I'm 
looking for a repeatable function I can loop through at least.
On Mon, Sep 10, 2012 at 1:55 PM, Alan Fregtman 
<[email protected]<mailto:[email protected]>> wrote:
Press "Center" in the top right, translate/rotate/scale as desired, then press 
"Object" again? Or did I miss something?
On Mon, Sep 10, 2012 at 1:08 PM, Eric Lampi 
<[email protected]<mailto:[email protected]>> wrote:
I'm not sure how to accomplish this, I am drawing a blank at the moment...

A modeler build a globe and cut up the continents into little pieces, the 
orientation needs to point toward the center of the globe so they can animate 
out on a local y axis. Is there any way to globally make the center axis to 
point towards a null or to global 0 without moving the individual objects? The 
geo is properly oriented, but the center points are all at the same default 
rotation.

Eric

--
Freelance 3D and VFX animator




--
Freelance 3D and VFX animator



--
Freelance 3D and VFX animator

Reply via email to