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

    Reposition or reseed individual clones

    Scheduled Pinned Locked Moved PYTHON Development
    2 Posts 0 Posters 137 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 11/10/2015 at 10:24, xxxxxxxx wrote:

      Hello, I'm new to the forums and just getting started with python. I understand how clones can be manipulated through the python effector. However I'm wondering if it's possible to reposition individual clones, while keeping them within the constraints of the cloner.

      In other words, if several clones are set to appear on the surface of a sphere, how can I reposition some of them while making sure they remain fixed to the surface. I'm imagining the same effect as changing the seed of the cloner, but for individual clones.

      Any thoughts?

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

        On 12/10/2015 at 04:33, xxxxxxxx wrote:

        Hi,

        I assume, the actual question is not so much, how to influence clones by the Python Effector, but rather how to constrain clones to the surface of an object.

        Unfortunately I know no efficient way to accomplish this directly with the SDK.
        Of course you could walk all polygons of the target object, comparing which polygon the clone, that you want to modify, is sitting on, then find neighbors and modify the clones position. But as said before, this would be highly inefficient and you'd probably need some advanced data structure to pull this off in a decent manner.

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