Maxon Developers Maxon Developers
    • Documentation
      • Cinema 4D Python API
      • Cinema 4D C++ API
      • Cineware API
      • ZBrush GoZ API
      • Code Examples on Github
    • Forum
    • Downloads
    • Support
      • Support Procedures
      • Registered Developer Program
      • Plugin IDs
      • Contact Us
    • Categories
      • Overview
      • News & Information
      • Cinema 4D SDK Support
      • Cineware SDK Support
      • ZBrush 4D SDK Support
      • Bugs
      • General Talk
    • Unread
    • Recent
    • Tags
    • Users
    • Login

    MoData Rotations

    Cinema 4D SDK
    2
    5
    730
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • RenatoTR
      RenatoT
      last edited by

      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

      1 Reply Last reply Reply Quote 0
      • RenatoTR
        RenatoT
        last edited by

        I mean Hpb Vector Array 🙂

        1 Reply Last reply Reply Quote 0
        • ferdinandF
          ferdinand
          last edited by ferdinand

          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

          MAXON SDK Specialist
          developers.maxon.net

          1 Reply Last reply Reply Quote 0
          • RenatoTR
            RenatoT
            last edited by

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

            1 Reply Last reply Reply Quote 0
            • ferdinandF
              ferdinand
              last edited by

              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

              MAXON SDK Specialist
              developers.maxon.net

              1 Reply Last reply Reply Quote 0
              • First post
                Last post