1
$\begingroup$

I am trying to align text with one edge of a plane using Geometry Nodes. The solution seems to be working but when I rotate the edge the text rotates in a strange way. Rotating the edge around Z doesn't rotate the text at all.

Out of Sync Text Rotation

Here's the node setup enter image description here

$\endgroup$

1 Answer 1

1
$\begingroup$

For this task you need two direction vectors:

  • The normal of the face
  • The X or Y direction in which the face points

You can easily get the normals with Transfer Attributes.

You can calculate the orientation of the face on the other axes by selecting only one edge, calculating the direction vector between the points of this edge, and using this for another rotation with Align Euler to Vector.

Something like this:

enter image description here


(Blender 3.2+)

$\endgroup$
3
  • $\begingroup$ Amazing! Thank you very much. If I have a mesh line instead of a plane, would it be possible to align the text to that line without having face normal? $\endgroup$ Nov 3, 2022 at 4:47
  • 1
    $\begingroup$ Of course you can also use a mesh line as a base. But then you need an additional vector, which describes in which direction the text should point. You can also define this vector manually (for example $(0,0,1)$). $\endgroup$
    – quellenform
    Nov 3, 2022 at 7:50
  • $\begingroup$ @quellenform when you delete geometry that's not index 0, is that to just leave one edge? Also how do you know which edge is 0? Thank you. $\endgroup$
    – Neil
    Nov 11, 2022 at 10:12

You must log in to answer this question.

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