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$
  • $\begingroup$ I'd consider duping & distributing your object around a circle using code in the first place. $\endgroup$ – batFINGER Oct 12 '15 at 13:16
2
$\begingroup$

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

$\endgroup$
  • $\begingroup$ Cool, that does indeed fix the transform, any ideas about how to correct the rotation? $\endgroup$ – amnesia Oct 12 '15 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 Oct 12 '15 at 13:06
  • $\begingroup$ Good call, that does work, but as you said, a bit tedious. Still, that gets me going. Thanks! $\endgroup$ – amnesia Oct 12 '15 at 13:29

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.