EyeonTips:Script/Reference/Applications/Fusion/Classes/Composition/Attributes

From VFXPedia

Jump to: navigation, search


Setting the render ranges to a clip

This snippet changes the renderrange to the In/Outs of a loader.

-- ### Get the loader GlobalIn
-- # replace loader1 with the proper loader
iGlobalIn = loader1.GlobalIn[CurrentTime]
iGlobalOut = loader1.GlobalOut[CurrentTime]

-- ### Set the Global- and Renderrange
composition:SetAttrs({COMPN_GlobalStart = iGlobalIn})
composition:SetAttrs({COMPN_GlobalEnd = iGlobalOut})
composition:SetAttrs({COMPN_RenderStart = iGlobalIn})
composition:SetAttrs({COMPN_RenderEnd = iGlobalOut})