I feel like this should be simple and I’m struggling a little. I’m trying to write something that will orient a transform to a face. Ie. It’s normal. I’m currently using a closestPointOnPoly node to get the a position on a face and it’s normal. Obviously moving a transform to a position is trivial but I dunno how to use that normal vector to turn that into a euler angle / matrix to set on the transform. I think you’d need another vector to derive a rotation?
Honestly I thought it’d be easy to say “point object Z+ towards this vector and we can ignore the twist around the axis for now” (although if there is a clever way to get the twist too that’d be great).
I’m familiar with cmds but I’ve only used OpenMaya a little.