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
    • Recent
    • Tags
    • Users
    • Login

    python effector rotation

    Scheduled Pinned Locked Moved PYTHON Development
    3 Posts 0 Posters 295 Views
    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 Offline
      Helper
      last edited by

      On 10/06/2013 at 15:35, xxxxxxxx wrote:

      I'm trying to set the rotation of a clone using this code in a pyEffector. It rotates incorrectly and scales it too. I'm sure its something simple im doing wrong

      hpb = c4d.Vector(utils.Rad(90), utils.Rad(90), utils.Rad(90))  
      marr[0] = marr[0] + utils.HPBToMatrix(hpb)
      
      1 Reply Last reply Reply Quote 0
      • H Offline
        Helper
        last edited by

        On 10/06/2013 at 16:08, xxxxxxxx wrote:

        marr[0] = marr[0] * utils.HPBToMatrix(hpb)

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

          On 10/06/2013 at 18:48, xxxxxxxx wrote:

          haha yep, figured it would be something simple like that. Thanks again Little Devil!

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