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 ?