How to achieve similar object preview as Grasshopper


#1

I am writing a rhino plugin (in c#) that will be used as a mock up for a future web interface.
In this plugin I am creating a parametric object that can be influenced with rather easy scrollbars in a RhinoTab.
What I would like to achieve is to create a preview of the final object in a similar way as Grasshopper does.
An object that is not in a layer, not clickable, selectable and so on.
I can imagine a workaround in which I set te object to a layer, and lock this layer. But I doubt that this is what Grasshopper does.
If anyone has a clue I would appreciate the help.

(ps. this same question is asked by me on the grasshopper forum)


#2

Think I found the answer, is it the conduit pipeline?


#3

yes, you can see here for an example:

c.


(Matteo Forlani 90) #4

Hi all,

using “displayPipeline” I get the preview as in gh. The next step is to bake the object in preview. Is there a similar command in c #? I tried with “doc.object.add” but it doesn’t work.

Thank you


(Lando Schumpich) #5

doc.Objects.Add is the right way of doing this.
What is nor working for you can you give an example/ a code snippet?