Particle Connector.js

tg_jp

Active member
Particle Connector.js

Hello

It's a spline script to create spline as connect all target particles.
Place it into ~/Library/Application Support/Cheetah3D/scripts/Splineobj folder to use.

[download] http://www.tres-graficos.jp/blog/files/article.php?id=81

[update] 20120119: fixed curve bug, improved distance calculation.
[update] 20120121: improved distance calculation.
[update] 20120125: change angle setting code, curve center parameter added.



regards.

tg_jp, Hiroto.
 
Last edited:

AndyThirtover

New member
Pointers, Instructions or Tutorial

Good Morning Dear Forum

I've downloaded the script, put it in splineObj and dragged a Particle Array into the 'target particle' drop box.

For the 'curve center' I've dropped a sphere which was the child particle of the Particle Array.

Nothing has happened, so I'm not so sure about what to next.

Could someone give me a nudge in the right direction please?

Regards


Andy
 

Attachments

  • NetworkBalls.zip
    8.3 KB · Views: 351

tg_jp

Active member
Hi,

* input higher value for 'distance threshold'.
* set another object for 'curve center'.

script makes spline as lines to each particles.

if you move object set to 'curve center', curve direction of lines changes.

Best

tg_jp, Hiroto.
 

Attachments

  • ch_20141118_particleCon_ss.jpg
    ch_20141118_particleCon_ss.jpg
    125.1 KB · Views: 416

AndyThirtover

New member
Got It! Now for making the splines into tubes!

Hiroto

Extra Double thanks .. Here's where I got to:

I've been having play at trying to get the splines to be paths for tubes, but without success. I guess that these need to be children of the 'Particle Connector' ?

Thanks Andy
 

Attachments

  • NetworkBalls.zip
    13.8 KB · Views: 348

tg_jp

Active member
hi,

no, Sweep creator object requires 2 children, profile and path.

please check attached image.

Best

tg_jp, Hiroto.
 

Attachments

  • ch_20141118_aprticleCon_ss1.jpg
    ch_20141118_aprticleCon_ss1.jpg
    124.1 KB · Views: 423

frank beckmann

Well-known member
You need a second spline to get the sweep-creator to work:

Cheers
Frank
 

Attachments

  • ParticleConnector.jpeg
    ParticleConnector.jpeg
    34.1 KB · Views: 267

frank beckmann

Well-known member
I´m not sure I understand. Do you want the particles A) kind oF slide along the splines or just B)splines be generated between new particles?
A) Not possible afaik
B) will work with higher value at the "distance threshold" property

Cheers
Frank
 
Top