Notifications
Clear all
[Closed] How to get polygon local axis without selecting it?
Sep 08, 2014 12:38 pm
See the attached picture.
The green point(axis tripod is On) is oriented using this:
p04 = $Point004
face01normal = polyop.getFaceNormal obj face04
tm01 = matrixFromNormal (polyop.getFaceNormal obj face04)
tm01.row4 = polyop.getFaceCenter obj face04
p04.transform = tm01
But as you can see the transform gizmo is oriented differently.
I can match the oritnetation of the point the same way as the transform gizmo using this:
p04.transform = getTransformAxis $ 0
but the face must be selected, so the getTransformAxis to return the proper value(transform axis).
How to get the same transformation(transform axis), that the getTransformAxis returns, but without selecting the polygon?
The object is just 4 polygons from standard teapot.