algorithmic modeling for Rhino
Dear Grasshopper-enthusiasts,
With Grasshopper I made a small script that projects a vector on a corner/angle. In Grasshopper it is fairly easy to do this mathematical operation, but to program this operation is much more complicated. I need this "operation" in a C# script, therefore I have the following question:
"Is it possible to make a C# script from a Grasshopper file or grasshopper Cluster?"
Here, the sliders would serve as input and the desired output is the length of the two projected vectors on the corner/angle, displayed in the yellow panel.
Thanks in advance.
Best Regards,
Rayaan Ajouz
Tags:
Hi,
As far as I know, that's not possible in a ready-made way. I think scripting that operation in C# by hand might be easier than it initially looks. When scripting C# within the C# scripting component of Grasshopper allows to work with Rhino geometries (points, curves, lines...). This could make the task less tedious.
Hope this helps.
Lennert
Hi Lennert,
Thanks for your reply and suggestions!
I think the strategy you described is a very good one. For this, I need to look into the script of every grasshopper-component used.
Do you know how to open the script of a standard grasshopper component in for example Visual Studio?
Regards
Have a look at the links underneath for that:
https://www.grasshopper3d.com/forum/topics/code-of-default-components
https://www.danieldavis.com/dissecting-grasshopper/
https://www.grasshopper3d.com/forum/topics/component-source-code
Thanks Lennert
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