Grasshopper

algorithmic modeling for Rhino

Hi i'm trying to find the solution in simple script and i thought about hoopsnake to make it work. But after connection it seemed to make a loop empty and i don't understand why. How could I make it work. I'd like to produce  a curve based on the points list which are given by the loop of evaluated circles. Thank You for any help.

Adam Chalupski

Views: 307

Attachments:

Replies to This Discussion

Hi Adam,

 

In principle it is certainly possible. I didn't really understand your definition, but in any case you will have to supply a starting condition (the S input on Hoopsnake). Actually, the way it works right now, you will have to specify a starting condition even if you are not using it, otherwise you will will get empty outputs.

 

Cheers

Yiannis

 

Thank You Yiannis, it works with the starting condition (simple plane) but still im not sure if it works  in the right way. I have found the question in the GH forum about the repeating GH script - if there is any way to make it without copy and paste the same part for many times. So i found Hoopsnake to be usefull in this case. Actually if  it's possible to engage Hoopsnake in this case then it would make live much easier when we have to repet the same script over and over again instead just loop one unit. You can have a look at that post of Stamatis:

http://www.grasshopper3d.com/forum/topics/repeated-procedure

and btw thank You for this amazing tool - it change the way of thinking about creating the scripts on GH


cheers

Hi Adam,

 

yes, this is exactly the type of situation Hoopsnake was designed for. So, connecting the output of a single block of Stamatis' definition to Hoopsnake and it's output back into the block (the Plane component perhaps) should get you set. You should pay attention to two things then:

First, you should merge the output of the current iteration (after the eval) and the previous one (output of Hoopsnake) in order to get a series of points and not just the last one.

Second, I saw that there are different variables for each iteration in Stamatis' example, so for that you would require some way of setting them for each iteration, i.e. a random number generator or so. 

 

Cheers,

Yiannis

Mmm, I tried an implementation there, although something funny happens with the break-the-loop condition... check it out in the aforementioned post.

RSS

About

Translate

Search

Videos

  • Add Videos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service