Refactor and Copy Paste Casting

This commit is contained in:
2023-03-21 18:33:29 +01:00
parent 3cc254bdc9
commit e14dc2136d
9 changed files with 297 additions and 161 deletions
+7 -3
View File
@@ -5,9 +5,13 @@ Generic Blender functions
import bpy
def get_settings():
return bpy.context.window_manager.vsetb_settings
def get_scene_settings():
return bpy.context.scene.vsetb_settings
def get_strip_settings():
scn = bpy.context.scene
return scn.sequence_editor.active_strip.vsetb_strip_settings
def get_bl_cmd(blender=None, background=False, focus=True, blendfile=None, script=None, **kargs):
cmd = [str(blender)] if blender else [bpy.app.binary_path]