algorithmic modeling for Rhino
Hi guys
I want to create my own custom graphs that will update automatically as the data that is entered is updated just like the graphs you can find under Display >> graphs
I want to use ghpython and finally I want to create 3 types of graphs that look just like the attached pictures
Has anyone apart from the creators of grasshoppper done this before? Can anyone suggest some starting points?
Any help is much appreciated!
Tags:
This is not an easy task, and I would think it would be next to impossible with ghpython - you'll need to compile a custom .NET component to customize its appearance. Here's my (rough and probably incomplete) short list of the things you would need to do to make this work:
If I were you, I'd get yourself a disassembler like ILSpy to see how the native graph components handle all this stuff (though full disclosure, this is a violation of the Grasshopper license agreement).
The class GH_BarGraph inside Grasshopper.dll is probably a good place to start.
Hi Andrew
Thanks for your reply given that its not going to be easy and I only know how to code with python I think I'll just had to bake graphs in Rhino viewports and leave this one for later
Cheers
Anton
Hi Anton and Andrew,
Anton, You touched one of my favorites in general and one of my main complains about Grasshopper (http://www.grasshopper3d.com/forum/topics/advanced-charts-and-graphs). I think you can use Dhour plugin to generate the graph that you want in number 3. I don't know how much control you will have for customization but it should be a good point to start. The project is OpenSource so you can check the source code and see what is happening behind the scene.
Andrew, I wonder if it is possible to overwrite the layout for the components to have a javascript enabled interface. Right now Embryo-viz has a component that let you visualize an image in Grasshopper, if we can have a similar component that can render html pages then we can use D3 library and generate pretty nice, interactive graphs. I recently found dimple (http://dimplejs.org/examples_index.html) and can't wait to do something with it.
Mostapha
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
Added by Parametric House 0 Comments 0 Likes
© 2024 Created by Scott Davidson. Powered by