Grasshopper

algorithmic modeling for Rhino

Hi guys,

I have an old version of gh at my office and unfortunately I can't update it... :(

 

so I was wondering,

is there a simple way to split the list of surfaces I have, identified by the numbers in the jpg, in two different lists that represent, identified by the colors on the jpg.

 

 

....I know I could use cull pattern managing the boolean list with a series of falses and trues corresponding to the number of elements in each row,

but this system I'm creating should be adaptable to different global heights, so the number of the surfaces in a row will change for each floor I'll be applying it to...and I would like to avoid changing the boolean sequence all the times.

 

thanks a lot!

 

Giulio.

 

 

Views: 644

Attachments:

Replies to This Discussion

Hi Giulio,

 

Here's a way of doing it with Integer Divide and Modulus Components used in conjunction with Replace Branches. If your GH version doesn't contain these maths components then you can use either some Fx2 or Expression components where you manually put in the formula a\b for integer divide and a%b for Modulus.

I attach the file but it is in version 0.8.0011

 

Attachments:

cool!

 

thanks a lot mate!! ;D

hey mate...

 

whic is the component you're using with this logo: AB? P

I can't find it in my GH version...is it a path mapper or what?

 

Thanks a lot.

 

G.

 

Replace Branches

thanks...

 

it doesn't exist on my version... jeez! I hate that.

 

 

have you made sure by using the keyword search? if you haven't tried this before: double click on the canvas and type "replace" and see what comes up in the list.

Maybe this helps him?

series: if not wired S=0 and N=1

arrow up means flatten

arrow up means graft

 

Best Regards

 

DeDackel

 

 

Attachments:

RSS

About

Translate

Search

Videos

  • Add Videos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service