Maxon Developers Maxon Developers
    • Documentation
      • Cinema 4D Python API
      • Cinema 4D C++ API
      • Cineware API
      • ZBrush Python 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

    Global rotation to local rotation

    SDK Help
    0
    4
    441
    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.
    • H
      Helper
      last edited by

      THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

      On 29/02/2004 at 17:36, xxxxxxxx wrote:

      User Information:
      Cinema 4D Version:   8.500 
      Platform:      Mac OSX  ; 
      Language(s) :      XPRESSO  ;

      ---------
      Using Xpresso, can I convert the global rotation of a calculated matrix to the local rotation of an object within a hierachy?

      1 Reply Last reply Reply Quote 0
      • H
        Helper
        last edited by

        THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

        On 01/03/2004 at 15:21, xxxxxxxx wrote:

        Can't you just connect the calculated matrix to the "Global Matrix" port of the target object? (You might have to do some additional wiring to preserve the position part of the matrix.)

        1 Reply Last reply Reply Quote 0
        • H
          Helper
          last edited by

          THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

          On 01/03/2004 at 18:57, xxxxxxxx wrote:

          Well, the calculated matrix's scale is all out of whack. The vectors probably need normalizing? I'm not sure how to do this in Xpresso. Besides I'm only interested in two axes of rotation. I want to restrict two of the object's axes to the rotation of the calculated matrix and leave the third axis free to rotate. I've used the Matrix2HPB node, but when I connect two of the rotations(P,B) to the same Global rotation ports of the object they are not pointing in the right direction. If I use the Vector port and connect it to the Global Rotation port of the object, it is pointing in the same direction but all three axes are locked to that rotation.

          1 Reply Last reply Reply Quote 0
          • H
            Helper
            last edited by

            THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

            On 01/03/2004 at 20:35, xxxxxxxx wrote:

            Never mind. After reading the "How to use matrices" tutorial again (for the 10th time), I figured it out. I just multiplied the calculated matrix by the parent's inverted Global matrix to convert it to the child's local matrix. It worked.

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