2
$\begingroup$

I'm still fairly new at this, so I might be asking the wrong question, but here's what I'm trying to accomplish.

I made a ring of objects using an array modifier, which I then broke apart into individual objects. I need to be able to use these as placeholders in code, so my goal is to read the transform and rotation of each one and place an object there. The problem is, since these were created by breaking apart a composite object, all of them have their transform and rotation as all zeros. How can I recalculate each object so that its transform is an offset from origin and its rotation is "correct"? To illustrate:

enter image description here

If you look at the selected cube, what I would like is to recalculate the transform to be whatever the correct offset is from origin, and the rotation should be 30° on the Z axis.

$\endgroup$
1
  • $\begingroup$ I'd consider duping & distributing your object around a circle using code in the first place. $\endgroup$
    – batFINGER
    Commented Oct 12, 2015 at 13:16

1 Answer 1

2
$\begingroup$

Click Shift+Ctrl+Alt+C, then click Origin to Geometry

$\endgroup$
3
  • $\begingroup$ Cool, that does indeed fix the transform, any ideas about how to correct the rotation? $\endgroup$
    – amnesia
    Commented Oct 12, 2015 at 12:56
  • $\begingroup$ Try edit mode on the object, rotate it until it is facing how it was in the beginning, then leave edit mode and rotate the object back to the same degree. Slow, but It should work. I would like to know if there is a faster way, or a Hotkey. $\endgroup$
    – BookWyrm17
    Commented Oct 12, 2015 at 13:06
  • $\begingroup$ Good call, that does work, but as you said, a bit tedious. Still, that gets me going. Thanks! $\endgroup$
    – amnesia
    Commented Oct 12, 2015 at 13:29

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .