Not sure if it already exists, but at least that functionality could be implemented as a plugin or script.
2023-02-13 11:02
Ok, I wrote a python script that calculates the normal, forward and right unit vectors and centroid of a face. But I still have to rotate the object's local axis. However I don't know how to convert these 3 axes to euler angles to be used by MQObject.rotation. Could you help me out?
2023-02-13 23:14
The object's local axis should be aligned like so:
https://i.imgur.com/hPRGBbM.gif2023-02-14 00:22
The three axes can be stored in a matrix and then converted to an euler angle. The pseudo code is thus.
mtx = MQSystem.newMatrix()
mtx.set(row, col. value) # x9 for each row&col
obj.rotation = mtx.getRotation()
2023-02-14 10:45
It worked like a charm! Thank you so much! :)
2023-02-14 20:15
>It worked like a charm! Thank you so much! :) can u give me small snipet how the code should look like ? :)
2023-02-15 01:50
>I have a few objects consisting of 1 face each. I need a way to automatically align the local axis of these objects with the faces' normal vector. Is it possible to do so via a plugin or a python script?
need snippet to move object down and rotate 180.
2023-02-15 02:16