Hello,
I’ve created a Grasshopper component LatticeStructure.gh (14.7 KB) and set up an endpoint for it. Now, I want to call this component using Rhino Compute through Node.js. How can I achieve this?
What do you mean by “set up an endpoint for it”? How you call the definition will depend a bit on where you store the definition in relation to your compute server.
We have some examples which show how to call compute and solve a gh definition that is sent along with the request: https://github.com/mcneel/rhino-developer-samples/tree/8/compute/js
Hello @fraguada , Thanks for your reply. However, I am encountering an issue with my Grasshopper definition where I cannot set a Brep as an input and retrieve the result using Rhino Compute. Can you help with this problem?Here attaching the sample grasshopper file.
LatticeStructure (2).gh (17.6 KB)
Have you tried Hops? This is a good way to get started with Rhino.Compute, and allows you to test how your definitions will work when solved with Rhino.Compute.Rhino - What is Hops