Off¶
Qualified name: algan.animation\_timeline.animation\_contexts.Off
- class Off(priority_level=1, **kwargs)[source]¶
Bases:
AnimationContextApply changes instantly, with no animation and no video time.
Everything inside the block takes effect at once: the scene jumps straight to the new state, and the video is no longer for it. This is how you set a scene up (position, color, materials, etc) without the viewer watching things slide into place, and how you make a cut rather than a transition.
Offtakes priority over enclosing contexts by default, so aruntimefurther out cannot stretch it back into an animation.- Parameters:
priority_level (float | None) – Priority of this context; contexts can only be overridden by ones of equal or higher priority. Defaults to
1, above the ordinary default of0, which is what keeps enclosing timing from re-animating this block.**kwargs – Passed to
AnimationContext.record_funcsdefaults to False here, so nothing inside is recorded as a timed event.
Examples
with Off(): square.move(RIGHT * 3) # teleports, takes no video time square.color = BLUE
Methods
Attributes
animation_managerchild_contextscombine_easingcomposed_easingcurrent_timeWhere the authoring cursor sits within this context, in seconds.
easingend_timeThe furthest time anything recorded in this context reaches, in seconds.
equalize_runtimesfinishedkwargslag_rationew_animationnew_mobsprev_contextpriority_levelrecord_attr_modificationsrecord_funcsruntimeruntime_per_partspawn_at_end