def get_project_folder_assetbuild(): project = tpt.get_project() # project/assets/castle/lookdev folder = utils.mock_entity(("parent", project), ("name", "Assets"), entity_type="Folder") assetbuildtype = utils.mock_entity(("name", "Environment"), entity_type="Type") return utils.mock_entity( ("parent", folder), ("project", tpt.get_project()), ("name", "castle"), ("type", assetbuildtype), entity_type="AssetBuild")
def get_project_assetbuild(): assetbuildtype = utils.mock_entity(("name", "Character"), entity_type="Type") project = tpt.get_project() return utils.mock_entity(("parent", project), ("project", project), ("name", "lizard"), ("type", assetbuildtype), entity_type="AssetBuild")
def get_project_sequence_task_workfiles(): entities = [] for ext in lib.get_workfile_extensions(): entity = utils.mock_entity( ("parent", get_project_sequence()), ("project", tpt.get_project()), ("version", 1), ("file_type", ext), ("name", "compositing"), entity_type="Task") entities.append(entity) return entities
def get_project_assetbuild_task_workfiles(): entities = [] for ext in lib.get_workfile_extensions(): entity = utils.mock_entity(("parent", get_project_assetbuild()), ("project", tpt.get_project()), ("version", 1), ("file_type", ext), ("name", "lookdev"), entity_type="Task") entities.append(entity) return entities
def get_project_sequence_shot_task(): return utils.mock_entity(("parent", get_project_sequence_shot()), ("project", tpt.get_project()), ("version", 1), ("name", "compositing"), entity_type="Task")
def get_project_sequence_shot(): return utils.mock_entity(("parent", get_project_sequence()), ("project", tpt.get_project()), ("name", "sh0010"), entity_type="Shot")
def get_project_sequence(): return utils.mock_entity(("parent", tpt.get_project()), ("project", tpt.get_project()), ("name", "sq001"), entity_type="Sequence")
def get_project_assetbuild_task(): return utils.mock_entity(("parent", get_project_assetbuild()), ("project", tpt.get_project()), ("version", 1), ("name", "lookdev"), entity_type="Task")