Reposition or reseed individual clones



  • 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?



  • 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.


Log in to reply