Hello everyone!
I’m exploring an idea of creating a diff-tool (file comparer) tool for VPL (Visual Programming Language) such as Grasshopper, Dynamo, and the like.
To keep things simple, I currently work with Grasshopper by creating a (.vson) / JSON
representation of the entire file, from which visualization can be created. I currently generate a SVG representation of the .gh
or .ghx
file.
Current Status
As a next step, I want to try using this as a dynamic preview of .gh
files in Speckle. For Example, When a user pushes a rhino / .3dm
file, we get a preview of the geometry in the file. I intend to create something similar - more suited for 2D canvas.
Help Required
Does anyone have experience creating something like this? In my head, these would be some of the high-level steps involved.
- Trigger workflow / script when a
commit
event happens. - Check if any files have my custom file extension (
.vson
) - Generate visualization, and display it somewhere.
Directions to any reference material / reference-person is highly appreciated.
Note: Although I mentioned it was a Diff-tool, atm I want to first make sure the preview works. Diff is next in my roadmap.
If you’re curious / need more information, feel free to reach out.
Cheers!
Kaushik LS
Chennai, IN