MahmoudAbdelRahman / GH_CPython

CPython plugin for Rhino-Grasshopper
BSD 2-Clause "Simplified" License
175 stars 38 forks source link

output as datatree #23

Open Alliages opened 6 years ago

Alliages commented 6 years ago

i don't know how to output a datatree. Right now i'm using a second python script with the raggedListToDataTree function (https://gist.github.com/notionparallax/5433271) Is there a better way?

MahmoudAbdelRahman commented 6 years ago

Hi @Alliages, I'm supposed to modify datatree in GH_CPython, I'll start doing it and I'll infrom you as soon as possible, I'll appreciate it if you give me an example. Best regards, Mahmoud.

Alliages commented 6 years ago

here is an example

error.zip

MahmoudAbdelRahman commented 6 years ago

Thanks so much, now everything is clear, I'll add this feature as soon as I can . Best regards, Mahmoud

varoudis commented 6 years ago

How do you work with Lists btw? the output seems to be a string with [] like "[0,1,2,3]"

MahmoudAbdelRahman commented 6 years ago

@varoudis ,

I have modified it to work with lists, you can check it out via this link: https://github.com/MahmoudAbdelRahman/GH_CPython/blob/master/GH_CPython.zip

Best regards, Mahmoud

DambronOlivier commented 5 years ago

hi @MahmoudAbdelRahman I haven't been able to output as a datatree either. any indications on this one?

thanks