Is it possible within grasshopper to create or access variables through a string? In other languages/applications I'd use eval() and it would look something like this.
Private Sub RunScript(ByVal x As List(Of Integer), ByRef A As Object, ByRef B As Object)
Dim intlist0 As New List(Of Integer), intlist1 As New List(Of Integer)
Dim modval As Integer
For Each val As Integer In x
modval = val Mod 2
Dim varStr As String = "intlist" & modval
Eval(varStr + ".add(" + val + ")")
Next
a = intlist0
b = intlist1
---
or
---
For i as Integer =0 to 100
Eval("dim varName" + i + " as new On3dPoint")
Next
What I've been able to find online suggests probably not... but maybe
Tags: