Run VRay Render in project component through a C# Script

is there a way to run Vray Render in project through C# script

The V-Ray Renderer components exposes a small API that you can call. That includes a “Render” method

ty for Your reply but i want to use ((render in project)) component through C# that render the geo in grasshopper in rhino environment. without baking

I am sorry, I misunderstood your intent.

The “Render in Project” component only “adds” the Gh generated geometry to the list of things to render in Rhino. You don’t need to script the component, as it has no actions, nor outputs. You need to script Rhino itself. A simple Render or vrayRender command will do, like this:

the code being:

if((bool) Render)
      Rhino.RhinoApp.RunScript(Rhino.RhinoDoc.ActiveDoc.RuntimeSerialNumber, "-_vrayRender _Production", true);
1 Like

ty very much.