hashing¶
Utilities for scene caching.
Functions
- get_hash_from_play_call(scene_object, camera_object, animations_list, current_mobjects_list)[source]¶
Take the list of animations and a list of mobjects and output their hashes. This is meant to be used for scene.play function.
- Parameters:
- Returns:
A string concatenation of the respective hashes of camera_object, animations_list and current_mobjects_list, separated by _.
- Return type:
str
- get_json(obj, *, include_pixel_array=False)[source]¶
Recursively serialize object to JSON using the
CustomEncoderclass.- Parameters:
obj (Any) – The dict to flatten
include_pixel_array (bool) – Whether to include pixel arrays encountered while flattening the object.
- Returns:
The flattened object
- Return type:
str