Eyeon:Script/Reference/Applications/Fusion/Classes/GLView/SetBuffer

From VFXPedia

Jump to: navigation, search

Contents

View.GLView : SetBuffer()

Arguments

SetBuffer(BufferInt)

  • BufferInt (required,Integer)

The buffer integer that the view will be set to. Buffer 0 = The Buffer view that is the currently selected on, 1 = The buffer view that is not the current one, 2 = A/B.

Returns

Does not return a value. Returns an error if not run on a View object.

Remarks

The SetBuffer function is used to display a specific one of the three possible view options for the A/B subviews in a view in Fusion. As stated above, 0 = the buffer view that the function is being run on, 1 = the buffer view that the function is not being run on, 2 = A/B view. So if the preview window that the function was being run on was the Left B view, the function would set the display viewer to B if the integer value was 0.

Requirements

  • eyeonScript 5.0
  • Fusion 5.0

Examples

-- Makes a loader and then views it on the Left A view. -- Also makes a gamma correct and views it on the B view.

a_view = comp:GetPreviewList()["Left"]

b_view = comp:GetPreviewList()["Left.B"]

Loader1 = Loader({Clip="c:\\example0000.tif"})

BC1 = BrightnessContrast({Gamma=1.8, Input = Loader1})

a_view:ViewOn(Loader1) b_view:ViewOn(BC1)

-- Set the buffer to the A/B view.

a_view.View:SetBuffer(2)

a_view.View:SetSplit(.5, .5, 45)


Tips for SetBuffer (edit)

EyeonTips:Script/Reference/Applications/Fusion/Classes/GLView/SetBuffer