Created
March 4, 2022 14:26
-
-
Save iwootten/94c2d795748c33018ebebccdc93e23e6 to your computer and use it in GitHub Desktop.
Example of Accessing a Task within and Shot within and Episode
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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