Is there a way to get the current state of a VRay Next rendering, from a C# component in Grasshopper? (IDLE, FINISHED etc.)
(The rendering is triggered in Rhino)
Using the .Net SDK I can do this, which will print "IDLE_DONE":
VRay.VRayRenderer renderer = new VRay.VRayRenderer();
renderer.StartSync();
renderer.WaitForRenderEnd();
Print(renderer.GetState().ToString());
Here obviously I set up a new VRay object and it renders an empty scene.
So another way to ask my first question:
Is there a way to reference the VRayRenderer object that was created when setting up the rendering in Rhino?
I hope the question makes sense...
All the best,
Joakim
(The rendering is triggered in Rhino)
Using the .Net SDK I can do this, which will print "IDLE_DONE":
VRay.VRayRenderer renderer = new VRay.VRayRenderer();
renderer.StartSync();
renderer.WaitForRenderEnd();
Print(renderer.GetState().ToString());
Here obviously I set up a new VRay object and it renders an empty scene.
So another way to ask my first question:
Is there a way to reference the VRayRenderer object that was created when setting up the rendering in Rhino?
I hope the question makes sense...
All the best,
Joakim
Comment