vray vfbControl - BigRoy/mayaVrayCommandDocs GitHub Wiki

Manipulate the V-ray Framebuffer.

New in v-ray nightly builds (since 2.4 nightlies)

vray("vfbControl", *args)

###Flags

These flags are a little bit different from a lot of the other vray commands. The flags here should actually be entered as a string in Python with the hyphen in front of it (see examples below).

Because the vray("vfbControl") actually spits out helpful information about how to use it I'm copying it here:

mc.vray("vfbControl")
# Usage: vray vfbControl [help|-help] [-rgb|-red|-green|-blue|-alpha|-mono|-trackmouse|-linkpdp <BOOLEAN>]
                          [-swapab <BOOLEAN>] [-setcompareab h|hor|horizontal|v|ver|vertical]
                          [-loadimage|-saveimage|-saveallimage <FILENAME STRING>]
                          [-setregion <left top right bottom>]
                          [-setregion reset] To reset/disable region.
                          [-clearimage|-duplicate]

                          [-getchannelnames] Returns a string[]. Indices correspond with -get/setchannel.
                          [-getchannel] Returns the index of the current channel in string[0].
                          [-setchannel <INTEGER>]

                          For Color Corrections:
                          [-clamp|-viewclamp|-info|-history|-pixelaspect <BOOLEAN>]
                          [-levels|-curve|-exposure|-srgb|-icc|-lut <BOOLEAN>]
                          [-stereo <BOOLEAN> *or* red|cyan|1 *or* green|magenta|2]
                          [-setexposure|-setlevelsmin|-setlevelsmax <FLOAT NUM>]

                          [-loadimage|-loadlut|-loadicc|-loadcurve|-saveimage|-savecurve <FILENAME STRING>]

                          For VFB History:
                          [-history <BOOLEAN>] [-historytemppath <PATH STRING>] [-historymaxsize <INTEGER>]
                          [-historyselect <INTEGER>] To select a history image (0-based index) for the commands on the next line.
                          [-historyload|-historysave|-historyseta|-historysetb|-historyremove|-historyclear]
                          [-historycomment <STRING>]

                          For Lens Effects:
                          [-bloom|-glare|-bloomfill|-glarefill <BOOLEAN>]
                          [-bloomtype image|both|renderelem]
                          [-glaretype image|rendercam|camparams]
                          [-bloomweight|-bloomsize|-bloomshape|-glareweight|-glaresize <FLOAT NUM>]
                          [-bloomintensity|-bloomobject|-bloommaterial|-glareintensity|-glareobject|-glarematerial <BOOLEAN>]
                          [-bloomsetintensity|-glaresetintensity <FLOAT NUM>]
                          [-bloomsetobject|-bloomsetmaterial|-glaresetobject|-glaresetmaterial <INTEGER>]
                          [-glarediffraction|-glareuseobstacle|-glareblades <BOOLEAN>]
                          [-glaresetblades|-glarebladesrot|-glarefnumber <FLOAT NUM>]
                          [-glareimage|-glareobstacleimage <FILENAME STRING>]

                          For Stamps:
                          [-stamp <BOOLEAN>]
                          [-stamphalign left|center|right] [-stampvalign top|bottom]
                          [-stamptext <STRING>]

                          Where <BOOLEAN> is one of: 0|1 on|off yes|no true|false enable|disable
                                and <left top right bottom> are integers.

                          Note: Successfully loading a file or setting a numerical value
                                implicitly enables the corresponding option.
                                If you want to disable it, do it after the load/set command. # 

###Examples

import maya.cmds as mc

# Select the first image in the Render History of the V-ray Framebuffer
mc.vray("vfbControl", "-historyselect", 0)
⚠️ **GitHub.com Fallback** ⚠️