Grasshopper

algorithmic modeling for Rhino

Hi! 

First of all, sorry for my english.

I used the battery AttractorValues coming with Nudibranch to create a certain effect (see image Overall). Basically, I just want to delete cubes that are in the range of an attraction point. 

So far, the effect is partly working. There is a gradient scale that makes the cubes go smaller the closest they are to the attraction point.

BUT what I want to do is that all the cubes in the range not just get smaller, but get removed. In other words, all the cubes that are touched by the scaling (scale factor under '1') must be deleted.

Is that possible? I hope I'm clear :x 

Overall.png

Script.png

testsestrade3.3dm

testsestrade3.gh

Thank you!

Étienne

Views: 688

Replies to This Discussion

If you are new, do not jump right into plug ins, otherwise you wont understand anything. Anyway measure the distance from attractor to cubes, use larger than or smaller than components to test value against the distance you want. then use cull pattern to remove boxes from the larger than or smaller than pattern results. 

Thank you for your quick answer!

I am not THAT new to GH ;) 

What you suggested is a good solution, and we tried it, but we really want to use Attractor Values because of the Distribution input that allows use to choose different effects created by the attraction point (Linear, parabole, sine, etc.). These would be very interresting for our concept!

Étienne

Have a look here. 

Attachments:
You can do the same with native components. Look into the graph mapper ;)

Ohh thanks a lot! We'll try this one!

Thanks again, we tried it and it worked !! Would it be possible to make it work with 2 curves both divided in multiple points instead of only one point? We tried it but it doesn't seems to work well. 

change the point component to a geometry component, then you can use curves or points or both at the same time. 

Hi Michael, 

We started as your scripted and introduced 2 curves. If we plug those 2 curves in the same "pull" battery, one will influence the other and we don't want this. So, we decided to duplicate from "pull" to "cull".
At the end, we have two cull patterns. What we want to do is to combine what is in common to both of those cull pattern (what is eliminated in the first cull will be eliminated as well in the second) to generate the final boxes.


We are currently thinking about "list" to figure out if it's possible to extract only what is common in those two list and then, eliminate one copy but we don't know if it's possible to do it that way and if so how to manage this... 
Here is a screenshot of our work and a script. 


Thank you so much to anybody who could help! :-)

Alex

Attachments:

Use logic gates to compare boolean values. 

Attachments:

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