Eyeon:Script/Reference/Applications/Fusion/Classes/GLView/SetScale
From VFXPedia
Contents |
View.GLView : SetScale()
Arguments
SetScale(ScaleAmount)
- ScaleAmount (required,Number)
The percentage, expressed as a numerical value, that the image in the view will be scaled by.
Returns
Does not return a value. Only available to view objects.
Remarks
The SetScale function is used to set the scale of a view. Percentages are translated to numerical values (50% = .5, 200% = 2.0) with 0 being eyeonScript's value for the view's "Fit" option.
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)
a_view.View:SetScale(.5)
Tips for SetScale (edit)
EyeonTips:Script/Reference/Applications/Fusion/Classes/GLView/SetScale