Hello @RenatoT,
thank you for reaching out to us. Please remember that we require users to tag their postings with important information like progamming environment, version and more, as stated in our Fourum Guildlines: Tagging. Your post is missing all of them. I will assume you are working with C++ on S24 for now.
I also not quite sure how this sentence is meant:
retrieving the rotation from a Matrix limit the angles from -PI to PI
Mograph particles store their information in arrays. These arrays are bundled into MoData. The particle position, orientation and scale are stored as a linear transform, i.e., Matrix
as Cinema does put it. The relevant array ID is MODATA_MATRIX
in this case. To convert the orientation stored in the frame of a Matrix
into a HPB orientation vector, you can use MatrixToHPB. The frame of the matrix stores the orientation in the base vectors v1, v2 and v3 alongside the scale on these axis, while the HPB function will convert that into a tuple of rotations in radians. Alternatively you could do this yourself with the common conversion matrices.
Cheers,
Ferdinand