Announcement

Collapse
No announcement yet.

Maxscript access to vfbcontrol Global Color Correction File

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

  • Maxscript access to vfbcontrol Global Color Correction File

    I'd like to load and save .vccglb files in the vfbcontrol with maxscript, but as far as I can tell there is no access at this point. Or am I missing something?

  • #2
    In version 3.x you can control VFB via the following MaxScript command:
    Code:
    vfbcontrol()
    Usage: vfbControl [#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>]
                              [#getregion] Returns <left top right bottom>
                              [#setregion "reset"] To reset/disable region.
                              [#clearimage|#duplicate|#hide]
    
                              [#getchannelnames] Returns a string[]. Indices correspond with #get/setchannel.
                              [#getchannel] Returns the index of the current channel.
                              [#setchannel <INTEGER>]
    
                              For Color Corrections:
                              [#clamp|#viewclamp|#info|#history|#pixelaspect <BOOLEAN>]
                             [#exposure|#whitebalance|#huesat|#colorbalance|#levels|#curve|#bkgr|#lut|#ocio|#icc|#srgb <BOOLEAN>]
                              [#ccociovt|#ccocioics|#ccociodd <INTEGER>]
                             [#ocioinputcolorspace|#ociodisplaydevice|#ocioviewtransform <STRING>]
                              [#itemsociocs|#itemsociodd|#itemsociovt|#itemsiccri] Returns list of combo box items
                              [#colorbalancemode 0|1|2|3] 0 - All 1 - Shadows 2 - Midtones 3 - Highlights
                              [#colorbalancevalue <INTEGER|FLOAT INTEGER|FLOAT INTEGER|FLOAT>]
                              [#huesaturationvalue <INTEGER|FLOAT INTEGER|FLOAT INTEGER|FLOAT>]
                              [#cclevels_rgb|#cclevels_red|#cclevels_green|#cclevels_blue|#bkgrimgasforegr|#lutconverttolog|#cciccblackpoint <BOOLEAN>]
                              [#stereo 0|1|2]  mode 0 - inactive current mode  mode 1 - red/cyan  mode 2 - green/magenta
                              [#cciccrenderintent 1|2|3|4]  1 - Perceptual  2 - Relative colorimetric 3 - Saturation 4 - Absolute colorimetric
                              [#setexposure|#setcontrast|#setlevelsmin|#setlevelsmax|#setwhitebalanceval <FLOAT NUM>]
                              [#getexposure|#getcontrast|#getlevelsmin|#getlevelsmax|#getwhitebalanceval] Returns <FLOAT NUM>
                              [#loadimage|#loadbkgrimage|#loadlut|#loadocio|#loadicc|#loadcurve|#saveimage|#savecurve <FILENAME STRING>]
                              [#bkgrimgfile|#lutfile|#iccfile|#ociofile] Returns <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>]
                              [#bloommode "image"|"both"|"renderelem"]
                              [#glaretype "image"|"rendercam"|"camparams"]
                              [#glaremode "image"|"both"|"renderelem"]
                              [#bloomweight|#bloomsize|#bloomshape|#glareweight|#glaresize <FLOAT NUM>]
                              [#bloomintensity|#bloomobject|#bloommaterial|#glareintensity|#glareobject|#glarematerial <BOOLEAN>]
                              [#bloomsetintensity|#glaresetintensity <FLOAT NUM>]
                              [#bloomgetintensity|#glaregetintensity] Returns <FLOAT NUM>
                              [#bloomsetobject|#bloomsetmaterial|#glaresetobject|#glaresetmaterial <INTEGER>]
                              [#bloomgetobject|#bloomgetmaterial|#glaregetobject|#glaregetmaterial] Returns <INTEGER>
                              [#glarediffraction|#glareuseobstacle|#glareblades <BOOLEAN>]
                              [#glaresetblades|#glarebladesrot|#glarefnumber <FLOAT NUM>]
                              [#glaregetblades] Returns <FLOAT NUM>
                              [#glareimage|#glareobstacleimage <FILENAME STRING>]
    
                              For Stamps:
                              [#stamp <BOOLEAN>]
                              [#stamphalign "left"|"center"|"right"] [#stampvalign "top"|"bottom"]
                              [#stamptext <STRING>]
    
                              Where <BOOLEAN> is true|false 
                                    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.
                                    All commands, that make sense to return values,
                                    written without arguments return value or list of values depend on comand type.
    Svetlozar Draganov | Senior Manager 3D Support | contact us
    Chaos & Enscape & Cylindo are now one!

    Comment


    • #3
      Originally posted by Crush View Post
      I'd like to load and save .vccglb files in the vfbcontrol with maxscript, but as far as I can tell there is no access at this point. Or am I missing something?
      You are right that we don't have access to this. Will make a note to add it.

      Best regards,
      Vlado
      I only act like I know everything, Rogers.

      Comment


      • #4
        Thank you! I know there are commands for seperate color correction tools, but to load/save all at once would be so much better.

        Comment

        Working...
        X