AnimatableData¶
Qualified name: algan.animation.animatable.AnimatableData
- class AnimatableData(animatable, data_dict_active=None, data_dict_materialized=None, history=None, time_inds_materialized=None, time_inds_active=None, spawn_time=<function AnimatableData.<lambda>>, despawn_time=<function AnimatableData.<lambda>>)[source]¶
Bases:
object
A container for all of the animation-relevant data for a mob, including its ModificationHistory.
- Parameters:
animatable – The mob for which we are recording data.
data_dict_active – The dictionary used for storing active animatable attribute values. At animate time this is simply the current value, at render time it is all values for the current batch of timesteps being rendered.
data_dict_materialized – The dictionary used for storing all materialized animatable attribute values. At animate time this isn’t used, at render time this contains all values for a (larger) batch of timesteps being materialized.
history – The ModificationHistory object to which modifications will be recorded.
time_inds_materialized – A list of all time-inds which have been materialized (i.e. are in data_dict_materialized).
time_inds_active – A list of all time-inds which are currently active (i.e. are in data_dict_active).
spawn_time – (function which yields) the timestamp at which the mob spawned.
despawn_time – (function which yields) the timestamp at which the mob despawned.
Methods