Automated Value list C# Grasshopper

script

(Mr.A.) #1

Hi , I am trying to create an automated value list that updates dynamically. I’am using James Ramden’s script for this task. Since I am a beginner I 'am having a bit of trouble getting it to work. Any help is appreciated- I’am getting alot of errors. The Gh file is attached below

Thanks in advance
Mr A.
.Automated valuelist.gh (11.8 KB)


(Mr.A.) #2

Any luck anyone?


#3

You haven’t copied all the code, the // <Custom additional code> part is missing. The names of the outputs are in lowercase. This implementation is designed to read xml data, you don’t seem to want that given the input panel on your file. In that case use that script:

AutoValueList.gh (5.2 KB)


(Mr.A.) #4

Amazing!!.. thanks for the help. Your solution seems super elegant. Although there is one more level complexity, The Values is not a “List” but rather a “TREE” . i tried changing the input from List Access to Tree Access but it generated errors. I know how lists work in C#, but have no clue about Tree structure. Is this even possible to do?


#5

If you mean this, I don’t know any other way to do it.
Canvas%20at%2019%3B29%3B08


(Mr.A.) #6

Dear Dani,
Appreciate the prompt response. Kindly find the Gh file below. I have tried to explain in the best way possible with the actual data I have. I truly appreciate your help on this.autovaluelistv2.gh (22.4 KB)

Best,
Mr A.


#7

No puedes darle una lista/rama al ValueList, pero puedes convertirlo a una línea de texto con Text Join y después “explotarlo” a lista con Text Split como muestra la imagen anterior.