1
$\begingroup$

I'm trying to recreate an effect similar to this one: enter image description here

As far my result:

enter image description here

My workflow is to create a spline using a particle system. The problem is that I want to use just points inside a radius i.e. for each point in the particle system, loop and create splines only with points with a distance less than, let's say, 10 This is my node system

enter image description here

I was thinking about using a script node, but the documentation for animation nodes it's not really clear about it

$\endgroup$
2
$\begingroup$

Welcome to Blender StackExchange! The Find Close Points node can be used here:

Node Tree

The max distance option defines the proximity of points as you want. This example is actually included in the documentation:

Node Tree

$\endgroup$
4
  • $\begingroup$ Oh. I didn't know about this node :) thank you. I was thinking about a script node, and to write some python code, but this is way more simple $\endgroup$ – Rage Oct 15 '18 at 7:46
  • $\begingroup$ @Rage By the way, can you tell me what is not clear in the documentation so that we can improve it? $\endgroup$ – Omar Emara Oct 15 '18 at 8:04
  • $\begingroup$ My idea was to create a simple script in python, getting the particles coordinates from the particle system and then create splines. I've seen there's a node for this, the invoke program node, but, in my opinion, it's not very clear how to use it for python scripting. In specific, in the documentation many examples are shown, but how do you exactly get the variables in python code from the invoke subprogram node? Anyways, I think we're going out of the topic, if you want to we could continue discuss it somewhere else (I'd like to) $\endgroup$ – Rage Oct 15 '18 at 8:20
  • $\begingroup$ @Rage Sure, where do you want to continue this? The invoke node only invokes the the subprogram, to define the subprogram, you need to use the script node, the documentation for the script node is available here. $\endgroup$ – Omar Emara Oct 15 '18 at 10:35

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.