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
    1. Maxon Developers Forum
    2. SweepingMotion
    3. Best
    S
    • Profile
    • Following 0
    • Followers 0
    • Topics 5
    • Posts 16
    • Best 2
    • Controversial 0
    • Groups 0

    Best posts made by SweepingMotion

    • RE: Can I make a hierarchy of nulls inside a Python Generator behave like on in OM?

      @i_mazlov sorry I thought I deleted this post as I solved the issue.

      Anyway to anyone who stumbles upon this question here's how I solved it:

      for i,pt in enumerate(points_list[::-1]):
      
          off = c4d.Vector(distance * i,0,0 )
          mg = pt.GetMg()
          mg.off = off
          print(rotation.x)
          rm = c4d.utils.HPBToMatrix(rotation)
          pt.SetMg(mg * rm)
      

      So basically if the objects are inserted in the hierarchy and you start from the last one with the transformations this will work just like in the OM.

      posted in Cinema 4D SDK
      S
      SweepingMotion
    • RE: Changing axis rotation position

      @ferdinand I've played with your idea for a bit and then realized, that the point where the adj meets the ground is wrong, as it should be the point where a circle or f = opp with center in O meets the ground. Eventually I decided to just hack it a bit and change the position of the rotating object and the object inside to counter that move. Here's the result:

      posted in General Talk
      S
      SweepingMotion