2

My script aligns object to face like this: https://i.stack.imgur.com/WdkP9.png

But i need to get this: https://i.stack.imgur.com/QNWeT.png

there is a code i used:

faces = (polyOp.getFaceSelection $Box001) as array
face = faces[1]
theMatrix = matrixFromNormal(polyOp.getFaceNormal $Box001 face)
theMatrix.row4 = polyOp.getFaceCenter $Box001 face
$object.transform = theMatrix

Help me, friends :)

SHR
  • 7,940
  • 9
  • 38
  • 57

0 Answers0