Skip to content

Instantly share code, notes, and snippets.

@iwootten
Created March 4, 2022 14:26
Show Gist options
  • Save iwootten/94c2d795748c33018ebebccdc93e23e6 to your computer and use it in GitHub Desktop.
Save iwootten/94c2d795748c33018ebebccdc93e23e6 to your computer and use it in GitHub Desktop.
Example of Accessing a Task within and Shot within and Episode
import ftrack_api
session = ftrack_api.Session()
result = session.query('select id from Task '
'where name is "Animation" '
'and project.full_name is "{0}" '
'and parent.parent.name is "{1}" '
'and parent.name is "{2}"'.format("Karol Example", "EP_05_TEST", 44))
for task in result:
print(task['name'])
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment