Hello,
I'd like to let a user choose a render engine (CPU, CUDA or RTX) through a Python script, with an Eto window. It is part of a batch export script of VRayScenes.
I wrote the UI part with Eto with no problem (a RadioButtonList switching between the engines). But I'm not succeeding in linking the render engine to the buttons, I can't call the engine.
I'm trying to use this: (found here)
or this:
I get the following error : Message: 'module' object has no attribute 'GetDeviceList'.
Same thing to define the level of render quality : there are 6 levels in V-Ray UI (Low', 'Low+', 'Medium', 'Medium+', 'High', 'High+') but I don't find how to access them.
I can't find anything on forums, any help will be appreciated ! (I started not long ago scripting in Rhino so I don't have a global vision of how it fully works)
I work on:
Rhino 6 SR35
V-Ray 6 5.20.05
Windows 11
Thank you !
I'd like to let a user choose a render engine (CPU, CUDA or RTX) through a Python script, with an Eto window. It is part of a batch export script of VRayScenes.
I wrote the UI part with Eto with no problem (a RadioButtonList switching between the engines). But I'm not succeeding in linking the render engine to the buttons, I can't call the engine.
I'm trying to use this: (found here)
Code:
import rhVRay as vray cudaDevices = vray.GetDeviceList(vray.RenderEngines.RE_CUDA) enabled = cudaDevices[0].UseForRendering
Code:
import rhVRay as vray cudaDevices = vray.GetDeviceList(vray.RenderEngines.RE_CUDA) name = cudaDevices[0].Name
Same thing to define the level of render quality : there are 6 levels in V-Ray UI (Low', 'Low+', 'Medium', 'Medium+', 'High', 'High+') but I don't find how to access them.
I can't find anything on forums, any help will be appreciated ! (I started not long ago scripting in Rhino so I don't have a global vision of how it fully works)
I work on:
Rhino 6 SR35
V-Ray 6 5.20.05
Windows 11
Thank you !
Comment