Hello!
My script aligns object to face like this:
https://i.imgur.com/SggAqvx.png
But i need to get this:
https://i.imgur.com/gmuYhav.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 :)
miauu · 2018-07-07