Import Shots for mu

This commit is contained in:
ChristopheSeux
2024-03-26 17:54:03 +01:00
parent ac14fe5ba9
commit dae9d55494
5 changed files with 159 additions and 19 deletions
+9 -1
View File
@@ -109,6 +109,7 @@ class MetadataType(PropertyGroup):
class TaskType(PropertyGroup):
color : FloatVectorProperty(subtype='COLOR')
import_enabled : BoolProperty(default=False)
class TaskStatus(PropertyGroup):
@@ -297,6 +298,7 @@ class Project(PropertyGroup):
asset_types : CollectionProperty(type=AssetType)
metadata_types : CollectionProperty(type=MetadataType)
task_types : CollectionProperty(type=TaskType)
task_type_index : IntProperty()
task_statuses : CollectionProperty(type=TaskStatus)
spreadsheet_import: PointerProperty(type=SpreadsheetImport)
@@ -304,6 +306,12 @@ class Project(PropertyGroup):
type : StringProperty()
import_source: EnumProperty(items=[(i, i.title(), '') for i in ('DISK', 'TRACKER')])
import_task: EnumProperty(items=[(i, i.title(), '') for i in ('LAST', 'SELECTED', 'ALL')], default='LAST')
shot_dir_template: StringProperty(
name="Shot Template", default="$PROJECT_ROOT/sequences/{sequence}/sh{index:04d}")
@property
def active_episode(self):
return self.episodes.get(self.episode_name)
@@ -582,7 +590,7 @@ class VSETB_PGT_scene_settings(PropertyGroup):
shot_channel_name : StringProperty(
name="Shot Channel Name", default="Shots")
@property
def active_project(self):
settings = get_scene_settings()