algorithmic modeling for Rhino
well lets see what i can do tomorrow cuz its over for tonight have to sleep and go to work tomorrow :(
make data trees! It's the only way that grasshopper can support lists of lists
# for accesssing GH classes
import clr
clr.AddReference("Grasshopper")
from Grasshopper.Kernel.Data import GH_Path
from Grasshopper import DataTree
dataTree = DataTree[object]()
for i, thing in enumerate(data):
branch_id = branch_ids[i]
path = GH_Path(branch_id)
dataTree.Add(thing, path)
a = dataTree
otra alternativa sería no usar split dentro del script, dejando cada linea como un "string" singular.
entonces, se puede usar el "split string" componente de Grasshopper para crear branches de los lists of lists.
i will see if i can solve it tomorrow
https://github.com/tussyswat/dhda-it-code/tree/CSV-MANAGER/WIP
here's the code and files of my tools.
4:33 am head blow off need to rest
el split lo tengo que utilizar obligatoriamente, porque necesito indexar cada una de la informacion de los strings para poder Sortear por campos
i guess that a DataTree coding explanation for dummies will be so helpfull
jejejeje who are encourage ?
YESSS!!!! Solved.
here's the code
https://github.com/tussyswat/dhda-it-code/blob/eac73607c6ae7ede68eb...
Hello,
I have found this fantastic trick here:
https://willwang6.wixsite.com/precision/post/2017/12/02/ironpythonr...
It worked for me easily.
Fabio
Welcome to
Grasshopper
Added by Parametric House 0 Comments 0 Likes
Added by Parametric House 0 Comments 0 Likes
Added by Parametric House 0 Comments 0 Likes
Added by Parametric House 0 Comments 0 Likes
© 2024 Created by Scott Davidson. Powered by