Grasshopper

algorithmic modeling for Rhino

Multiple attractors with variable intensities

Hi,

I've been trying for a while, with many different custom components, scripts and combinations of all to do the following:

-have a series of attractor points
-have a field of points that are pulled/attracted
-make the attractor points' intensities variable individually
-use a curve to attract the field of points

Thats all for now, I've been struggling with it for a few weeks and finally tonight came up with the attached file, thanks to Davids input at this link below:
http://www.grasshopper3d.com/forum/topics/multiple-attractor-points...

The only issue I'm having is moving the field of points evenly to the attractors. If I simply stack each set of points onto the move it obviously just stacks the move too, but even then it all seems to be pulling towards the top left point. What I'm wondering is how to combine or average the forces of all the attractors and influence the field that way.

I think it may be a simple solution but this is one of the first times I'm looking at lists and stuff and I can't wrap my head around it.

Help would be great, cheers

Views: 17295

Attachments:

Replies to This Discussion

that linked helped after looking at it for an hour or so ha. I ended up using Mario's method of feeding the move from one point into the next and so on. It's very crude and requires lots of repetition of the same process but it is the simplest way to do this for me because I just can't seem to figure out that path mapper.

I will upload the definition after my uni lecture, when I tidy it up.

Thanks a lot for that!

good it helped, regardless of it being crude.

i'm looking forward to learn from yours, when you upload it

good luck on your lecture

best

m

Thanks Mario, as long as it works I have no issue of it being crude, especially since in the end I will only be using up to 10 at most.

I've attached the definition I worked on. I've included a point that moves along a curve, acting as a rogue element in the mix.

Now that I've achieved what I wanted I will continue to explore further possibilities and upload anything as it develops for people in the future

Attachments:

Thanks for this solution - good for me at my stage as I'm just starting out with GH.

Use its definition and add a small Python code to generate girdles

Attachments:

The only problem I have with this kind of setup (feeding into the next, which feeds into the next, etc) is that the parametric relationship is lost. If there is a way to maintain the relationships (dealing with lists) that would be great. I am not sure how to do it as the studies we have been doing this summer have been focusing on attractor intensities, and they follow the way you are suggesting. There leaves much to be desired.

RSS

About

Translate

Search

Photos

  • Add Photos
  • View All

Videos

  • Add Videos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service