Using Object as Drag Field

Discussion about scripting with Python
fatsumo
Posts: 44
Joined: Tue May 15, 2007 11:24 am
Contact:

Using Object as Drag Field

Postby fatsumo » Tue Dec 13, 2011 3:56 pm

Need a set up where drag is only applied when the particles are on the surface of the object.

At the moment am looping through vertex's and checking their distance to the particle but it's ridiculously slow.

Any better ideas?

Note : I don't want to place bounded drag fields as it needs to be set for multiple shots.....

Thanks guys,


User avatar
bitSeq
Posts: 1044
Joined: Thu Jul 10, 2008 9:48 am
Location: UK - Stuart Armiger
Contact:

Using Object as Drag Field

Postby bitSeq » Tue Dec 13, 2011 3:59 pm

Try using a filter daemon based on particle collision and exclusive links with the drag and container emitter.

fatsumo
Posts: 44
Joined: Tue May 15, 2007 11:24 am
Contact:

Using Object as Drag Field

Postby fatsumo » Tue Dec 13, 2011 4:39 pm

Yep.
Particles aren't all colliding. Need something that is more proximity based.

Thanks though

User avatar
bitSeq
Posts: 1044
Joined: Thu Jul 10, 2008 9:48 am
Location: UK - Stuart Armiger
Contact:

Using Object as Drag Field

Postby bitSeq » Tue Dec 13, 2011 5:22 pm

Python is not multi threaded so it will always be slow using a script to do this, unless you can write a C++ plugin for RF.

So my advice is to come up with a clever use of the filters, you could possibly try selecting a layer close to the surface via Density or perhaps use another daemon like magic to pull the particles to the surface


Return to “Python-Scripting”

Who is online

Users browsing this forum: No registered users and 2 guests