2
$\begingroup$

enter image description here

I want to position numbers on a die, and looking for an efficient technique to do that. My current approach is to copy Median XYZ of a face to coordinates of an object, can I do it in at once, instead of copying each separately?

$\endgroup$
6
  • 1
    $\begingroup$ For Location and Rotation in Object Mode you can use CTRL+ALT+C, unfortunately it doesn't work elsewhere. Even if you did, it probably wouldn't be what you expect; a face doesn't have coordinates on its own, this is why it's called a "Median", it's just an average of the coordinates of the vertices building a face. If you explain why you need this, we may rule out or confirm XY problem and figure out a workaround or better workflow… $\endgroup$ Aug 5, 2023 at 7:36
  • $\begingroup$ Well, I'm making dices, and I put texts on faces as you see in the image. I need face's XYZ locations to put the text on the middle of the face. So I copy the XYZ locations of the face and paste them to the text's XYZ locations. Then the text becoming middle of the face. $\endgroup$ Aug 5, 2023 at 7:50
  • $\begingroup$ Select the face in Edit mode, Shift-S > Cursor to Selected to move the 3D cursor to the centre of the face, Back in Object mode, you can then add your text and it will be added in the centre of the face. If the text already exists and you just want to move it to the face, use Shift-S > Selection to Cursor with the text selected. $\endgroup$
    – John Eason
    Aug 5, 2023 at 8:29
  • $\begingroup$ Thank you, it worked! $\endgroup$ Aug 5, 2023 at 8:42
  • $\begingroup$ Now added as an answer. $\endgroup$
    – John Eason
    Aug 5, 2023 at 9:03

2 Answers 2

4
$\begingroup$

Select the face in Edit mode, Shift-S > Cursor to Selected to move the 3D cursor to the centre of the face. Back in Object mode, you can then add your text and it will be added in the centre of the face. If the text already exists and you just want to move it to the face, select the text and use Shift-S > Selection to Cursor to move it to the centre of the face.

$\endgroup$
3
$\begingroup$

I can't find a cool script by batFinger on generating dices with numbers, but I found this instead:

How to center text on slanted triangular face?

Manual

If you want to do it manually, You can consider a workflow like this:

In Edit Mode, the tool is switched to 3D cursor, and the orientation of it to geometry to align rotation with the normal. Then ⬆ Shift$\color{green}{█}\color{#888}{0█}$ left mouse button is used to select a face, as John points out, ⬆ ShiftS to align the cursor to the center of the face, and in object mode, after duplicating the text, ⬆ ShiftS again to align, this time selection to the cursor. Finally F3 Align Transform to Orientation, to get that rotation correctly…

Instancing

Select a big face, ⬆ ShiftG Select Similar by area, P Separate by Selection, in Object mode hide the original object, set the text location and rotation to zeros, parent it with the newly created object, and set the latter's instancing to Face mode:

Then F3 Make Instances Real and modify the texts, but I don't know why I get two text objects per face…

Geometry Nodes

$\endgroup$
1
  • $\begingroup$ nice one +1. i have a python solution here but now i realized that i could have just used the 3D cursor orientation thanks to your answer. $\endgroup$ Aug 5, 2023 at 16:46

You must log in to answer this question.

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