Grasshopper

algorithmic modeling for Rhino

Hi everyone,

I am trying to write a python code to cut the first two and the last two elements of a list, and give the output as True/False elements, so I can directly use them in "dispatch list".

I could write a code in a way that it puts all the boolean values in one list so far. However, if I want to feed it into the dispatch item, I need to separate the elements into multiple lists. When I do so, it turns all the values to "False". I deeply appreciate any help in this regard.

Thanks

Views: 1403

Attachments:

Replies to This Discussion

Would this work for you? Greetings,

Jeroen

Thanks, Jeroen, that's great! I was so obsessed with making lists that didn't think of using the print statement directly. Nice way of doing it.

and the GH file

Attachments:

Hi Nilou

I hope this help you

Attachments:

Thanks, Naruto. this is very well optimized and organized. It helped me a lot.

RSS

About

Translate

Search

Videos

  • Add Videos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service