Grasshopper

algorithmic modeling for Rhino

Hello everyone!

I am trying to rename the indices of a list according to the image attached.

After paneling a surface, the indices of panels are from 0 to (UxV)-1, However for marking each panel according to column/row value you need to be able to edit the indices.

What would you suggest?


Best regards

Shahrokh
 

Views: 759

Attachments:

Replies to This Discussion

If you mean by

{0,3},{1,3},{2,3}

{0,2},{1,2},{2,2}

{0,1},{1,1},{2,1}

{0,0},{1,0},{2,0}

since all the list starts by 0, you can use partition list by pluging

initial list -> list

4  -> size

i think you can get a similar list you want

you dont need to change the list structure... just create a list with the text that you want and tag each panel. You can use the cross reference trick between a "grafted list" and a "single list" (by default all components use cross reference between graft and single lists, in this case the concatenate component).

Also I use a expression with a format function to get the "0x" number.

Thank you guys!
I also realized as long as it's a rectangular kind of list/panel, I don't need to mess around with their indices. I create my own. In this example i use a paneled surface but you can just start with two numbers representing U and V. This was my approach : 

RSS

About

Translate

Search

Videos

  • Add Videos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service