-
Notifications
You must be signed in to change notification settings - Fork 13
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[wish] LB String to Object / Object to String component #307
Comments
Hi @BingWangUS, have you seen the |
Thanks @mostaphaRoudsari for sharing. I haven't but will check it out. To clarify what we are trying to do - we have created some custom json string that follows the same format of LB objects, and would like to convert it back to a LB object in the grasshopper environment, so that most people can use it the same way as how they typically use LBT. I'm aware that we can create LB objects via LB construct data component, or use a customize ghpython script like below Just feel it could save a few clicks if we have such a component similar to HB string to Object. Or maybe just allow the LB Load Data component to take json string input? |
Hi @BingWangUS! Thank you for the explanation. To do what you are asking for we basically need to develop a schema for the Ladybug objects similar to what we have done for Honeybee: https://github.com/ladybug-tools/honeybee-schema/wiki, https://www.ladybug.tools/honeybee-schema/model.html It will take some time before we can find the time to do this. |
Hey @BingWangUS , I'm sorry that I forgot to read through this all when you first posted it. If you can clarify which objects you are hoping to be able to serialize, that would make things quicker to implement on our end. Is it just the data collections? If so, this is pretty straightforward. |
Hi Chris, no worries and thanks for getting back. Yes it is the data collections I was referring to. We already have LB Dump Data component, but in my case I was hoping to convert json string directly created within GH to LB objects. |
Hi LBT team,
We think a component to convert LB Object to JSON string as well as the other way around will be helpful, in addition to save to file component. Similar functionality are available for HB objects, where we have both options to save as string and save as files.
We have been creating custom LB objects in the same json format and it will be great if we can have this component to enable us using the great visualization functions of LBT.
Thanks.
Bing
The text was updated successfully, but these errors were encountered: