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
    1. Maxon Developers Forum
    2. jenandesign
    3. Best
    • Profile
    • Following 0
    • Followers 1
    • Topics 13
    • Posts 36
    • Best 2
    • Controversial 0
    • Groups 0

    Best posts made by jenandesign

    • RE: Issues with the C4D to Unity Import python plugin - missing some types of objects

      @m_adam Shoot, tried calling it 3X and still nothing on the cloner (spline mode) object.

      (failing) test file attached
      fbxtest_v04.c4d

      posted in Cinema 4D SDK
      jenandesignJ
      jenandesign
    • Feature request: Quaternion Matrix Mix to XPresso "Mix" Node

      Hello, I would use it quite often if it could be added: a Quaternion rotation setting to the XPresso Mix node... much like there is in the c4d.BaseObject class as it is accessible through the GUI

      Attributes of a regular Null object showing Quaternion setting:
      Screen Shot 2020-11-17 at 11.07.11 AM.png

      Attributes of a Mix node in XPresso, where a boolean checkbox like above could live:
      Screen Shot 2020-11-17 at 11.08.59 AM.png

      I have constructed a Quaternion Matrix Mix using an XPresso Python node myself, but thought this would be a useful feature to be added in the default XPresso API for users who have not yet learned how to implement Quaternions in Python. Alternatively, perhaps other users will find the following code useful anyway 😁

      import c4d
      from c4d import utils
      #Welcome to the world of Python
      
      
      def main():
          global MatrixMix
      
          q1 = c4d.Quaternion()
          q1.SetMatrix(MatrixA)
      
          q2 = c4d.Quaternion()
          q2.SetMatrix(MatrixB)
      
          q = c4d.utils.QSlerp(q1, q2, Mix)
      
          MatrixMix = q.GetMatrix()
          MatrixMix.off = c4d.utils.MixVec(MatrixA.off, MatrixB.off, Mix)
      

      Screen Shot 2020-11-17 at 11.12.44 AM.png

      Cheers!
      -Leah

      Edit: also I am sorry if this is posted incorrectly. This seemed like the best place to put this post since there is usable Python code included 🙆

      posted in General Talk
      jenandesignJ
      jenandesign