Skip to content

Instantly share code, notes, and snippets.

@kporangehat
Created October 15, 2012 14:34
Show Gist options
  • Save kporangehat/3892785 to your computer and use it in GitHub Desktop.
Save kporangehat/3892785 to your computer and use it in GitHub Desktop.
Find all Tasks for 'myshot' that were created from TaskTemplate shot_pipeline_tt
shot_pipeline_tt = {'type': 'TaskTemplate', 'id':8}
myshot = {'type': 'Shot', 'id': 1680}
filters = [
['entity', 'is', myshot],
['template_task.Task.task_template', 'is', shot_pipeline_tt]
]
result = sg.find('Task', filters, ['content'])
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment