Shots, sequence creation (not a manual method)

Hey!

Can the shot creation be automated using Excel or CSV data? Could it be a template that can be filled out and uploaded?

It’s actually quite trivial to do via the AYON Python API. A very simple example would be:

from ayon_core.pipeline import get_current_project_name
import ayon_api
from ayon_api.entity_hub import EntityHub

project_name = get_current_project_name()
hub = EntityHub(project_name)

for folder_name in ["asset1", "asset2"]:
    folder_entity = hub.add_new_folder(
        folder_type="Shot",  # folder type must exist in project
        name=folder_name,
        # use folder id if you want a parent folder
        # parent_id=parent_folder_id,
    )

    for task_name, task_type in [
        ("modeling", "Modeling"),
        ("lookdev", "Lookdev")
    ]:
        hub.add_new_task(
            task_type=task_type,  # task type must exist in project
            parent_id=folder_entity["id"],
            name=task_name,
        )
        
hub.commit_changes()

As such - you’d only need to write CSV or Excel parsing surrounding this and make it do what you need. Does that help?

Thanks for sharing the code.

A template would make it easy for the production team to create shots and their tasks in bulk using them. The production team doesn’t have any experience with scripting and executing them mostly.