Evening All, So I’m in the process of creating a rather long structure with a single truss type. Currently a design based on a warren truss. However I’d like the option to ‘flick a switch’ to switch to other types, like Pratt & Howe trusses. I’ve used several if nodes however things get rather messy! I’m thinking whether this is a case to use an IfElse in Python? However I have no knowledge of coding. An idea of the script input & output below:
If IN[0] = 1
Use IN[1] as OUT
If IN[0] = 2
Use IN[2] as OUT
If IN[0] = 3
Use IN[3] as OUT
If IN[0] = 4
Use IN[4] as OUT<p style="margin: 0cm 0cm 8pt;"></p> <p style="margin: 0cm 0cm 8pt;">I've had an attempted but it keeps giving me null's!</p> <p style="margin: 0cm 0cm 8pt;">The IN[o} is purely a number 1 ->4</p> <p style="margin: 0cm 0cm 8pt;">The other IN's contain geometry data.</p> <p style="margin: 0cm 0cm 8pt;"></p> <p style="margin: 0cm 0cm 8pt;">IF anyone has a good link to a good python beginners guide then do let me know!</p> <p style="margin: 0cm 0cm 8pt;"></p> <p style="margin: 0cm 0cm 8pt;">Thanks,</p> <p style="margin: 0cm 0cm 8pt;">Dan</p> <p style="margin: 0cm 0cm 8pt;">![Truss - 3D|1704x880](upload://qv3SjXtOFlxpwquT9z8EdRj4ZvB.png)</p>