Hi,
Does RhinoCompute Server allow Rhino plugins/commands to be executed?
Say for example, that I currently have a circle packing algorithm script/plugin/command, that returns the solution of packed random circles.
I would like to be able trigger this from various applications such as a web page and console applications ideally without having to rewrite the algorithm in other languages
Use the grasshopper endpoint as described in the post you found
Pass a python script along with a dictionary of data for the script to process
Extend the compute server with your own custom functions defined in a plug-in
(1) and (2) are available on compute.rhino3d.com. (3) would require you to host your own instance of compute.
For python (2), the process is very similar in concept to how GhPython works, You would pass a script and a dictionary to compute. Compute would set variables in the script to matching keys in the dictionary. You also pass a list of variable names for values to extract and return.
For item (3), your plug-in can register a set of functions that become new endpoints. Compute handles the serialization.
Item (3) seems like what we’d like to experiment with.
How would you go about registering new endpoints and make them accessible?
The Rhino Plugin VS Template does not seem to have anything related to compute endpoint, am I missing something ?