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. Fabio B
    The forum rollback caused push notifications and recent user data to malfunction. The problem will fix itself naturally within the next days. See the topic Broken Push Notifications for a more in detail explanation. You can fix this yourself by forcibly clearing your browser cache (for most browsers: CTRL + F5).
    F
    • Profile
    • Following 0
    • Followers 0
    • Topics 2
    • Posts 3
    • Best 0
    • Controversial 0
    • Groups 0

    Fabio B

    @Fabio B

    0
    Reputation
    3
    Profile views
    3
    Posts
    0
    Followers
    0
    Following
    Joined Last Online

    Fabio B Unfollow Follow

    Latest posts made by Fabio B

    • Move the plane in random effect

      Hi,
      I'm trying to create a granular effect on a 15x15 cloner grid made of 2x2 cm planes spaced 21 mm apart. I want the clones to move instantly to Y = 20000 as a Linear Field passes over them from left to right. However, I want the movement to be disordered and progressively delayed, not all clones jumping at once.

      For example, as the Linear Field touches the first column, only some of the clones should move to Y20000, and the others with some delay. When it touches the second column, some of the second and some of the first should move, and so on — creating a granular and organic transition.

      I tried using a Delay Effector, but when it is active, the Linear Field seems to stop working.
      I can't figure out where I'm going wrong. Any help would be appreciated!

      Thanks in advance,Test move.c4d

      posted in Cinema 4D SDK windows 2025
      F
      Fabio B
    • RE: The code entered in the Python emitter has no effect.

      @ferdinand Thanks, Ferdinando. The code was written by the AI. Basically, I wanted a certain number of 2cm x 2cm planes to move randomly along the Y axis. My original grid contains 62,000 of them, but for convenience, the one I posted contains 150. Since my view is oriented in a certain way, as the clones move, they'll disappear from the scene, creating a sort of shimmering or swarming fade-out effect.

      posted in Cinema 4D SDK
      F
      Fabio B
    • The code entered in the Python emitter has no effect.

      Hello, in theory, the Python code linked to the Python effector should randomly move the object in the cloner by 100 cm along the Y axis — why isn't it working

      import c4d
      import random
      
      def main() -> bool:
          md = c4d.modules.mograph.GeGetMoData(op)
          if md is None:
              return True
      
          count = md.GetCount()
          matrices = md.GetArray(c4d.MODATA_MATRIX)
      
          # Inizializza la lista dei frame solo una volta
          if not hasattr(op, "frames"):
              random.seed(42)
              op.frames = [random.randint(0, 75) for _ in range(count)]
      
          fps = doc.GetFps()
          current_frame = doc.GetTime().GetFrame(fps)
      
          for i in range(count):
              if current_frame >= op.frames[i]:
                  # Sposta il clone fuori scena (es. +100 cm su Y)
                  m = matrices[i]
                  m.off.y = 100
                  matrices[i] = m
              else:
                  # Mantieni la posizione originale (nessuna modifica)
                  pass
      
          md.SetArray(c4d.MODATA_MATRIX, matrices, True)
          return True
      

      15x10.c4d

      edit (@ferdinand): moved file link out of source code.

      posted in Cinema 4D SDK r25 python windows
      F
      Fabio B