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

From VFXPedia

< EyeonTips:Script | Reference/Applications/Fusion/Classes/Composition
Revision as of 23:53, 20 January 2010 by Daniel (Talk | contribs)
(diff) ← Older revision | Current revision (diff) | Newer revision → (diff)
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})