SOLVED MoData Rotations

Hi all,
retrieving the rotation from a Matrix limit the angles from -PI to PI so I tought that there is an Array of Vector in MoData... without luck. Maybe i'm working in ModifyPoints and is not the correct way to manage the clones rotations with angles.
Any suggestion?

Thanks in advance
Renato

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

I mean Hpb Vector Array 🙂

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

Thanks Ferdinand... i'll manage them myself.

Hello @RenatoT,

without further questions or replies, we will consider this topic as solved by Monday, the 30th and flag it accordingly.

Thank you for your understanding,
Ferdinand