NoExtra¶
Qualified name: algan.animation\_timeline.animation\_contexts.NoExtra
- class NoExtra(runtime=None, runtime_per_part=None, equalize_runtimes=None, lag_ratio=None, priority_level=None, easing=None, composed_easing=None, combine_easing=False, record_funcs=None, record_attr_modifications=None, prev_context=None, spawn_at_end=None, new_animation=False, finished=False, new_mobs=None, child_contexts=None, kwargs=None, animation_manager=None)[source]¶
Bases:
AnimationContextSuppress enclosing contexts’ spawn/despawn extras inside this block.
Some contexts add behaviour to every spawn or despawn –
SlideShowinserts a pause around each one, for instance. Wrapping code inNoExtrastops those additions from applying to spawns inside the block, while leaving the timing behaviour of the enclosing context intact.Examples
with SlideShow(): title.spawn() # gets the slideshow pauses with NoExtra(priority_level=1): helper.spawn() # does not
Methods
Do nothing, dropping enclosing contexts' spawn extras.
Do nothing, dropping enclosing contexts' despawn extras.
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- Parameters:
runtime (float | None)
runtime_per_part (float | None)
equalize_runtimes (bool | None)
lag_ratio (float | None)
priority_level (float | None)
easing (Callable[[], float] | None)
composed_easing (Callable[[], float] | None)
combine_easing (bool)
record_funcs (bool | None)
record_attr_modifications (bool | None)
prev_context (AnimationContext | None)
spawn_at_end (bool | None)
new_animation (bool | None)
finished (bool)
new_mobs (list | None)
child_contexts (list | None)
kwargs (Any)
animation_manager (Any)