Eyeon:Script/Reference/Applications/Fusion/Classes/Composition/IsRendering
From VFXPedia
< Eyeon:Script | Reference | Applications | Fusion | Classes | Composition
Contents |
Composition : IsRendering()
Arguments
IsRendering()
Returns
Returns a boolean value equal to the state of COMPB_Rendering composition attribute.
Remarks
Use this function to determine whether a composition object is currently rendering. It will return true if it is playing, rendering, or just rendering a tool after trying to view it.
Requirements
- eyeonScript 5.0
- Fusion 5.0
Examples
-- mimics play and then stops a composition after it comes close to filling its cache
-- comp script
cm = fusion.CacheManager
-- if there's not enough room for a few compAttrs = comp:GetAttrs()
while cm:IsRoom(100000000) == true do
comp.CurrentTime = comp.CurrentTime+1
wait(0.5)
-- Wait while the comp finishes its current render.
while comp:IsRendering() == true do
wait(0.5)
end
if compAttrs.COMPN_RenderEnd == comop.CurrentTime then break end
end
Tips for IsRendering (edit)
EyeonTips:Script/Reference/Applications/Fusion/Classes/Composition/IsRendering