Hi,
I'm new to shotgun and the API and am not quite wrapping my head around it yet. My company is using it for a new project, and I need to create metadata files to give to Unity. I just need to get the values animators have put in various fields. I can connect and get the project from its name, and a list of sequences (only type and id are given to em on query though...)
from shotgun_api3 import Shotgun
sg = Shotgun("URL","HelloWorld","longCode")
project = sg.find_one("Project", [["name", "is", "blah"]] )
print project
sequenceList = sg.find("Sequence", [['project','is', project]])
for sequence in sequenceList:
print sequence
results:
{'type': 'Project', 'id': 103}
{'type': 'Sequence', 'id': 86}
{'type': 'Sequence', 'id': 87}
{'type': 'Sequence', 'id': 88}...
...not really helpful
What I need to get is:
-sequence names
-shot names
-Cut In Value
-Cut Out Value
-Animation/Layout File Name (I'm assuming this is a custom property the animators added) Value
-Animator Notes (I'm assuming this is a custom property the animators added) Value
Any working code snippets would be MUCH appreciated.
Thanks,
Dan