Hi @juancarreras, cool workaround to make CancelRender()
behave when batchrender is off
IĀ“ve changed it as below in my script and it works too:
vray.SetBatchRenderOn(True)
vray.CancelRender()
vray.SetBatchRenderOn(False)
c.
Hi @juancarreras, cool workaround to make CancelRender()
behave when batchrender is off
IĀ“ve changed it as below in my script and it works too:
vray.SetBatchRenderOn(True)
vray.CancelRender()
vray.SetBatchRenderOn(False)
c.
In my globals I have:
import rhinoscriptsyntax as rs
import Rhino as rc
Then later I have defined the vray
name as:
vray = rc.RhinoApp.GetPlugInObject("V-Ray for Rhino")
How come if I replace
rs.GetPlugInObject("V-Ray for Rhino")
with vray
resulting on
vray.SetBatchRenderOn(False)
the script still works fine even though rc
is not the same than rs
ā¦ ?
vray
is an instance of the plugin object. rs.GetPluginObject()
just calls
Rhino.RhinoApp.GetPlugInObject(plug_in)
take a look for the RhinoScript function here .
c.
Thanks, Iāve been looking for these definitions for a while.
You might find them on your system too:
C:\Users\USERNAME\AppData\Roaming\McNeel\Rhinoceros\5.0\Plug-ins\IronPython (814d908a-e25c-493d-97e9-ee3861957f49)\settings\lib\rhinoscript
c.
oh, I didnār know that ! cool
Hi @matt_newberg
Itās been a while since you helped me out with this.
Somehow the script that I had working since we were in this thread, stopped working and I canāt figure out why. I get no errors but no file is written to disk.
As you might recall, you provided a newer VRayForRhinoNETInterface.dll where the function SaveVFBRenderToPath was included. I used it to be able to write only the RGB channel reather that all the channels in my batch render script. It used to work fine at the time. Even Iāve saved again the dll from the zip file in case that has been overwritten with a more recent vray update but still something is wrong.
If I run for example the sample script that you provided (further up in the thread on March 13) no file is written to the desktop but like I said, thereās no error either.
Do you know why this could be happenning ?
Thanks