Eyeon:Script/Reference/Applications/Fusion/Classes/GLView
From VFXPedia
< Eyeon:Script | Reference | Applications | Fusion | Classes
Parent Class: Object
GLView
Contents |
Methods:
SetBuffer | Show one of the A or B buffers |
GetBuffer | Returns which buffer is shown |
GetPreview | Returns the buffer's Preview object |
GetViewerList | Returns a list of available viewers |
SetScale | Set the scale of the display |
GetScale | Returns the scale of the display |
SetPos | Set the position of the display |
GetPos | Returns the position of the display |
GetPosTable | Returns the position of the display as a table |
GetRot | Returns the x,y,z rotation of the display in degrees |
SetRot | Set the x,y,z rotation of the display in degrees |
GetRotTable | Returns the x,y,z rotation of the display in degrees as a table |
ResetView | Resets the display to default position etc |
SetSplit | Set the split position of the view |
GetSplit | Get the split position of the view |
GetSplitTable | Get the split position of the view as a table |
SetLocked | Lock or unlock the display |
GetLocked | Returns true if the display is locked |
DisableCurrentTools | Pass-through the currently selected tool |
ShowSubView | Enables the inset SubView display |
ShowingSubView | Returns true if the inset SubView is currently being displayed |
SwapSubView | Swaps the SubView with the Main View |
ShowQuadView | Splits the view into four subviews |
ShowingQuadView | Returns true if the view is split into four |
SavePrefs | Saves the current view prefs to a named configuration |
LoadPrefs | Loads the current view prefs from a named configuration |
GetPrefs | Retrieve a table of preferences for this view |
EnableLUT | Enables or disables the current Buffer LUT |
IsLUTEnabled | Returns true if the current Buffer LUT is enabled |
LoadLUTFile | Loads a LUT file, setting or LUT plugin ID into the Buffer LUT |
ShowLUTEditor | Pops up the Editor window for the current Buffer LUT |
EnableStereo | Enables or disables 3D stereo display |
IsStereoEnabled | Indicates if stereo display is currently enabled |
SwapStereo | Swaps left & right stereo eye views |
IsStereoSwapped | Indicates if the left & right stereo eyes are currently swapped |
SetStereoSource | Sets the source for the left & right stereo images |
GetStereoSource | Returns the source being used for stereo display |
SetStereoMethod | Sets the method for stereo display |
GetStereoMethod | Returns the method and options being used for stereo display |
Members:
CurrentViewer [RW] | The current GLViewer object |
Other:
Tips for GLView (edit)
- Each ChildFrame (i.e. composition window) has at least a left and a right view, represented by GLView objects. To reach one of these, use something like this:
-- .Left will return the left preview object, the GLView object can be reached via .View comp:GetPreviewList().Left.View
or this:
comp.CurrentFrame.LeftView
- The view object - as described above - has methods that deal with general properties of the view, like enabling the sub views or switching between the A & B buffers.
- Each buffer can in turn contain a viewer, represented by either GLViewer or GLImageViewer objects. Use a view's :GetViewerList() method or .CurrentViewer to reach these objects. They provides further methods specific to a single display buffer like showing guides, enabling LUTs or switching color channels:
-- switch to A buffer and show the red channel left = comp.CurrentFrame.LeftView left:SetBuffer(0) if left.CurrentViewer ~= nil then left.CurrentViewer:SetChannel(0) left.CurrentViewer:Redraw() end