Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

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:

  1. Selects the fourth image in the VFB history and loads it into the VFB:
Code Block
languagepy
import maya.cmds as cmds

cmds.vray('vfbControl', '-historyselect', 4, '-historyload')


2. Loads an OCIO configuration file in the VFB:

Code Block
languagepy
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:

...

FlagDescriptionArgumentsSet/GetExample
-clampEnables/disables the Force color clamping feature.Booleanyes 
-viewclampEnables/disables displaying the clamped colors in the VFB.Booleanyes 
-pixelaspectEnables/disables visualization of the pixel aspect ratio.Booleanyes 
-ocioEnables/disables OCIO correction.Booleanyes 
-iccEnables/disables ICC correction.Booleanyes 
-srgbEnables/disables displaying the image in sRGB color space.Booleanyes 
-lutin2loglutlin2logConverts to log space before applying LUT.Booleanyes 
-ccocioics

Sets OCIO Input Colorspace by number in the dropdown list.

Integeryes 
-ccocioddSets OCIO Display Device by number in the dropdown list.Integeryes 
-ccociovtSets OCIO View Transform by number in the dropdown list.Integeryes 
-ocioinputcolorspaceSets OCIO Input Colorspace by name.Stringyes 
-ociodisplaydeviceSets OCIO Display Device by name.Stringyes 
-ocioviewtransformSets OCIO View Transform by name.Stringyes 
-itemsociocsReturns a list of all available OCIO Input Colorspace values.N/A  
-itemsocioddReturns a list of all available OCIO Display Device values.N/A  
-itemsociovtReturns a list of all available OCIO View Transform values.N/A  
-itemsiccriReturns a list of all available ICC Rendering Intent values.N/A  
-cciccrenderintent

Specifies ICC render intent with an integer:
1 - Perceptual
2 - Relative colorimetric
3 - Saturation
4 - Absolute colorimetric

1 | 2 | 3 | 4yes 
-loadocioSpecifies file for OCIO correction.String (filename)  
-loadiccSpecifies file for ICC correction.String (filename)  
-loadpresetLoads a global preset file.String (filename)  
-savepresetSaves a global preset file.String (filename)  
-iccfile
-ociofile
Returns the filename String used in the corresponding Correction Control rollout.N/A  

...