Page History
In V-Ray it is now possible to access the underlying scene plugins via the Rhino script tools.
A script access manual is provided with the installation of V-Ray. It can be found at the V-Ray for Rhino root folder C:\Program Files\Chaos Group\V-Ray\V-Ray for Rhinoceros\VRayForRhinoObjectModel.html
...
To set a parameter value in the V-Ray UI via a script, the "user data" counterpart must be used. Otherwise, the change will only affect the V-Ray scene.
ParamTypes
Enumeration
Name | Value | Description |
---|---|---|
T_UNKNOWN | 0 | Undefined type. Generally an error |
T_INTEGER | 1 | Standard long integer number |
T_FLOAT | 2 | Single precision floating-point number |
T_STRING | 4 | Character string value |
T_BOOL | 8 | Boolean value |
T_TRANSFORM | 16 | Transformation value, consisting of a matrix and a vector. Equivalent to 12-element single-precision floating-point array |
T_MATRIX | 32 | Matrix value. Equivalent to 9-element single-precision floating-point array |
T_VECTOR | 64 | Vector value. Equivalent to 3-element single-precision floating-point array |
T_COLOR | 128 | RGB float color value. Equivalent to 3-element single-precision floating-point array |
T_ACOLOR | 256 | RGBA float color value. Equivalent to 4-element single-precision floating-point array |
T_LIST | 32768 | Binary OR-ed with the other type indicates that the value is a list of values of that type |
...
RenderModes
Enumeration
Property Name | Value | Description |
---|---|---|
RM_PRODUCTION | 0 | Renders in production mode |
RM_INTERACTIVE | 1 | Renders in interactive mode |
RM_CLOUD | 2 | Starts the current render job on the Cloud |
RM_LAST | 3 | Repeats the last render |
...
RenderEngines
Enumeration
Property Name | Value | Description |
---|---|---|
RE_CPU | 0 | Renders on the CPU |
RE_CUDA | 1 | Renders on the GPU and/or CPU using CUDA |
RE_RTX | 2 | Renders on the GPU using RTX Optix |
RhinoScriptComputeDeviceInfo
A structure packing all details for a GPU compute device into a single block
Property Name | Description |
Name | The name of the device |
UseForRendering | Specifies whether the device is to be used for rendering or not |
Name
Name of the device
Syntax:
BSTR
Name
Examples:
Divbox | ||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| ||||||||||||||||||||||||
|
|
Specifies whether the device is to be Specifies whether the device is to be used for rendering or not
Syntax:
VARIANT_BOOL
UseForRendering
...
Divbox | ||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| ||||||||||||||||||||||||
|
...
|
RhinoScriptSceneParam
Represents a reference to a NeUI plugin parameter
Property Name | Description |
---|---|
Value | Gets or sets the value of the parameter. Must conform with the value type |
Type | Returns the data type of the parameter. Can be OR-ed with ParamTypes::T_LIST |
TypeAsString | Returns the data type of the parameter as a string |
Value
Gets or sets the value of the parameter. Must conform with the value type
Syntax:
VARIANT Value
Examples:
Divbox | ||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| ||||||||||||||||||||
|
|
Type
Returns the data type of the parameter. Can be OR-ed with ParamTypes::T_LIST
Syntax:
ParamTypes Type
Examples:
...
...
...