Jump to content

Move pivot/geo to center of pivot/geo/world center


Hans Peter

Recommended Posts

Hey,

 

a simple question here: how can I move an object to the pivot or a pivot to the center of an object; or an object to the center of the world? Got a case where the ship as well as the pivot are off. I need them both at the same place on object level.off.png

Edited by Heraklit
Link to comment
Share on other sites

Actual geometry has offset of P attribute. You can add Transform SOP, move geometry to origin and then move back to it's previous place on object-level by hand.

If you need to turn offset into exact object-level transform values, use Extract Transform node. Let's assume the original object is called orig1:

  1. Copy-paste orig1 and call it copy1.
  2. Place Transform SOP inside orig1.
  3. Set translate to -$CEX, -$CEY + 0.5 * $SIZEY, -$CEZ to center geometry at origin.
  4. Go up to scene level and create Extract Transform OBJ.
  5. Set orig1 as Source and copy1 as Destination.
  6. Make Extract Transform parent of the orig1.
  7. Enable Keep Position When Parenting checkbox on the orig1.
  8. Unparent orig1 from Extract Transform to get transform values.
  9. Disable checkbox from step 7.
  10. Delete copy1 and Extract Transform nodes.

Now you have orig1 matching it's previous offset with obj-level transform.

Edited by f1480187
  • Like 1
  • Thanks 1
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...