algorithmic modeling for Rhino
Python has a built-in JSON encoder/decoder module, which you can implement in a GHPython component. Have attached a simple example. Hope that helps..
Thank you Anders!
I will give this a shot as soon as I can.
Again, thanks!
If you unwire the out parameter from the panel it works. You can open the Python component to inspect and manipulate the data from there. I think the drawing error is caused by sending a really large string from "out" to the panel that it is not capable of handling.
Yea, panel can't handle long strings.
It may get a little better if you split the string into some smaller portions (items on a list) and then display it as a list of strings.
Hey Mateusz,
Is there an example of writing a DataTree or a list to json file?
Thanks!
Konrad, this post may be interesting to you: http://lmnts.lmnarchitects.com/fabrication/grasshopper-to-d3js/
You could also use the Python json module as seen here..
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