object center orientation

14 views
Skip to first unread message

Eric Lampi

unread,
Sep 10, 2012, 1:08:39 PM9/10/12
to soft...@listproc.autodesk.com
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

Alan Fregtman

unread,
Sep 10, 2012, 1:55:25 PM9/10/12
to soft...@listproc.autodesk.com
Press "Center" in the top right, translate/rotate/scale as desired, then press "Object" again? Or did I miss something?

Eric Lampi

unread,
Sep 10, 2012, 2:05:36 PM9/10/12
to soft...@listproc.autodesk.com

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.

Sandy Sutherland

unread,
Sep 10, 2012, 1:45:45 PM9/10/12
to soft...@listproc.autodesk.com
You could try with spacer nulls for each geo - snap to their current POS - then direction constrain them to a null in the center of the globe - parent each geo to it's respective null and freeze transforms - you could do this once and use a quick hacky script to iterate through the remaining ones if they are named with a number.  Once frozen xforms you could unparent if you need to.

S.

_____________________________
Sandy Sutherland
Technical Supervisor
sandy.su...@triggerfish.co.za
_____________________________





From: softimag...@listproc.autodesk.com [softimag...@listproc.autodesk.com] on behalf of Eric Lampi [eric...@gmail.com]
Sent: 10 September 2012 19:08
To: soft...@listproc.autodesk.com
Subject: object center orientation

Eric Lampi

unread,
Sep 10, 2012, 2:19:22 PM9/10/12
to soft...@listproc.autodesk.com
OK cool, thanks for the tip.

I just wanted to make sure I wasn't missing a command or operator that might get me there.

I need some practice scripting anyway, so I'll try to do something using an OM instead.

Eric

Scott Lange

unread,
Sep 10, 2012, 2:23:31 PM9/10/12
to soft...@listproc.autodesk.com

Bradley Gabe

unread,
Sep 10, 2012, 2:40:06 PM9/10/12
to soft...@listproc.autodesk.com
Actually, there *is* a simpler solution. :-)
  1. Create a single, target null at origin.
  2. Select all the meshes.
  3. Envelope to the target null (this locks all the vertices in place).
  4. Direction constrain to the target null.
  5. Set up vector to scene y.
  6. Freeze the meshes.
Done.

Bradley Gabe

unread,
Sep 10, 2012, 2:41:22 PM9/10/12
to soft...@listproc.autodesk.com
Apologies to Eric, because once again you can skip having to learn scripting. I should have just left things alone.

Eric Lampi

unread,
Sep 10, 2012, 2:43:44 PM9/10/12
to soft...@listproc.autodesk.com

Eric Lampi

unread,
Sep 10, 2012, 2:47:11 PM9/10/12
to soft...@listproc.autodesk.com
Nah, it's actually something I am working on, baby steps. This was just the CG Gods giving me a nudge.

Matt Lind

unread,
Sep 10, 2012, 2:25:03 PM9/10/12
to soft...@listproc.autodesk.com

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: softimag...@listproc.autodesk.com [mailto:softimag...@listproc.autodesk.com] On Behalf Of Eric Lampi
Sent: Monday, September 10, 2012 11:06 AM
To: soft...@listproc.autodesk.com
Subject: Re: object center orientation

 

Eric Lampi

unread,
Sep 10, 2012, 2:56:08 PM9/10/12
to soft...@listproc.autodesk.com
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.

Matt Lind

unread,
Sep 10, 2012, 3:03:19 PM9/10/12
to soft...@listproc.autodesk.com

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.

David Barosin

unread,
Sep 10, 2012, 3:15:24 PM9/10/12
to soft...@listproc.autodesk.com
so if I understand you want to have each geo's y-axis point at the origin without effecting the geometry.

You could throw an envelope on all the obects,  apply a direction constraint to a null at the origin then freeze the envelope.
Reply all
Reply to author
Forward
0 new messages