Page History
...
The vray vfbControl commands are supported in batch rendering mode.
VFB commands are designed to work with MEL scripting. To use them with Python, the MEL script should be wrapped in Python using the maya.cmds module.
Example of vray vfbControl in Python:
- Selects the fourth image in the VFB history and loads it into the VFB:
Code Block | ||
---|---|---|
| ||
import maya.cmds as cmds
cmds.vray('vfbControl', '-historyselect', 4, '-historyload') |
2. Loads an OCIO configuration file in the VFB:
Code Block | ||
---|---|---|
| ||
import maya.cmds as cmds
cmds.vray('vfbControl', '-loadocio', 'C:\\path\\config.ocio') |
From MEL script
...
The vray vfbControl command modifies the various aspects of the VFB. Commands follow the following structure:
...
Flag | Description | Arguments | Set/Get | Example |
---|---|---|---|---|
-clamp | Enables/disables the Force color clamping feature. | Boolean | yes | |
-viewclamp | Enables/disables displaying the clamped colors in the VFB. | Boolean | yes | |
-pixelaspect | Enables/disables visualization of the pixel aspect ratio. | Boolean | yes | |
-ocio | Enables/disables OCIO correction. | Boolean | yes | |
-icc | Enables/disables ICC correction. | Boolean | yes | |
-srgb | Enables/disables displaying the image in sRGB color space. | Boolean | yes | |
-lutin2loglutlin2log | Converts to log space before applying LUT. | Boolean | yes | |
-ccocioics | Sets OCIO Input Colorspace by number in the dropdown list. | Integer | yes | |
-ccociodd | Sets OCIO Display Device by number in the dropdown list. | Integer | yes | |
-ccociovt | Sets OCIO View Transform by number in the dropdown list. | Integer | yes | |
-ocioinputcolorspace | Sets OCIO Input Colorspace by name. | String | yes | |
-ociodisplaydevice | Sets OCIO Display Device by name. | String | yes | |
-ocioviewtransform | Sets OCIO View Transform by name. | String | yes | |
-itemsociocs | Returns a list of all available OCIO Input Colorspace values. | N/A | ||
-itemsociodd | Returns a list of all available OCIO Display Device values. | N/A | ||
-itemsociovt | Returns a list of all available OCIO View Transform values. | N/A | ||
-itemsiccri | Returns a list of all available ICC Rendering Intent values. | N/A | ||
-cciccrenderintent | Specifies ICC render intent with an integer: | 1 | 2 | 3 | 4 | yes | |
-loadocio | Specifies file for OCIO correction. | String (filename) | ||
-loadicc | Specifies file for ICC correction. | String (filename) | ||
-loadpreset | Loads a global preset file. | String (filename) | ||
-savepreset | Saves a global preset file. | String (filename) | ||
-iccfile -ociofile | Returns the filename String used in the corresponding Correction Control rollout. | N/A |
...