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

    Another rotation question

    SDK Help
    0
    2
    170
    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 04/03/2004 at 21:00, xxxxxxxx wrote:

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

      ---------
      Using Xpresso, I have a calculated matrix and a calculated angle. What I want to do is rotate the matrix around only one of its axes by the angle, then transfer the matrix to an object. I tried transfering the original calculated matrix to the object and then rotating the object by inputing values into HPB ports, but that doesn't seem to work.

      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 05/03/2004 at 23:12, xxxxxxxx wrote:

        Again, nevermind. I figured out a way to do it. I calculated another matrix like the first one but with the X and Z vectors transposed and the X inverted which gave me a matrix that was rotated 90 degrees about the Y axis from the first matrix. Then I plugged the calculated angle into a range mapper (0 to 90 = 0 to 1) and fed that value into a Mix node with both matrices and the result of that into the Global Matrix of the object. It worked (although there must be an easier way).

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