Grasshopper

algorithmic modeling for Rhino

i want to make an expression like {0,2,4,...}[0,2,4,...] but my branches start from 48,49,50  and its changed according to slider and i want my expression to change according to the slider 

i tried to make  Format("{{0}+0,{0}+2,{0}+4,....;?}[0,2,4,...]", x)

and i connect x by the slider but it doesnt work

Views: 500

Replies to This Discussion

Hi molleybell,
you don't need to adapt your mask, you can just use {0,2,...}[0,2,...] since the sequences are infinite.

i dont know how to make amask that change when my first branch number change

Did you try my first suggestion? Not good enough? The image shows an example of a way you could format a mask.

thank you very much 

i do it 

Does this help?
/SPM

Attachments:

there is something missing in the file as you use aplugin that i dont have

That would be GHPython. My apologies for not stating that from the get-go.

Pieter's solution works just as well; it's a very similar approach and only uses native components.

/SPM

thanks for your help

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