feat: replay

This commit is contained in:
Swann
2021-12-11 15:53:02 +01:00
parent 57fdd492ef
commit 8cb40b2d60
4 changed files with 496 additions and 14 deletions

View File

@ -100,18 +100,6 @@ def get_state_str(state):
return state_str
def clean_scene():
for type_name in dir(bpy.data):
try:
type_collection = getattr(bpy.data, type_name)
for item in type_collection:
type_collection.remove(item)
except:
continue
# Clear sequencer
bpy.context.scene.sequence_editor_clear()
def get_selected_objects(scene, active_view_layer):
return [obj.uuid for obj in scene.objects if obj.select_get(view_layer=active_view_layer)]