Announcement

Collapse
No announcement yet.

Scripting the Vray Frame Buffer via ME or Python ("Display colors in sRGB space")

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Scripting the Vray Frame Buffer via ME or Python ("Display colors in sRGB space")

    I'm attempting to write a short script to automatically set up correct linear workflow in Vray. So far, I have discovered no way to modify the Vray Frame Buffer by scripting. At the moment, I need to toggle on "Display colors in sRGB space". However, doing this returns no commands in the script editor, and I can't find any documentation of a way to modify this via script. Any suggestions?

    Thanks

  • #2
    Hi,

    You can check the reply about this posted by Vlado here:
    http://www.chaosgroup.com/forums/vbu...ht=srgb+script

    The sRGB option in VFB will be ON by default, for the future V-Ray for Maya releases.
    Tashko Zashev | chaos.com
    Chaos Support Representative | contact us

    Comment


    • #3
      The latest nightly builds also support "vray vfbControl" command that allows you to control many aspects of the VFB. Type
      Code:
      vray vfbControl;
      in the MEL script editor to see all the options - should be something like this:
      Code:
      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. //
      Best regards,
      Vlado
      I only act like I know everything, Rogers.

      Comment


      • #4
        that's super handy. Thank you.
        http://www.a52.com

        Comment


        • #5
          Wow nice !

          So in basics:

          cmds.vfbControl(srgb=1)

          ?

          Thanks, bye.
          CGI - Freelancer - Available for work

          www.dariuszmakowski.com - come and look

          Comment


          • #6
            Originally posted by DADAL View Post
            Wow nice !

            So in basics:

            cmds.vfbControl(srgb=1)

            ?

            Thanks, bye.
            It is mel, not python.

            mel.eval('vray vfbControl -srgb 1')
            www.deex.info

            Comment

            Working...
            X