We’re trying to update some shot level data via the API and a script (service user already set up and working well).
Namely the handle in and out, and start frame in and out.
Looking for the appropriate way to do this with the API and/or service user.
Probably along the lines of:
from ayon_api.operations import OperationsSession
project_name = "test"
attrib_to_update = {
"frameStart": 1001,
"frameEnd": 1100,
"handleStart": 0,
"handleEnd": 0,
}
session = OperationsSession()
for folder in folders:
session.update_folder(
project_name,
folder_id=folder["id"],
attrib=attrib_to_update
)
session.commit()
You’d need the relevant folder ids though, you can query those beforehand with ayon_api.get_folders.
Additionally, you can use