-
Notifications
You must be signed in to change notification settings - Fork 206
Example: Upload a thumbnail for a Version
kporangehat edited this page Dec 10, 2010
·
2 revisions
So you've created a new Version of a Shot, and you've updated Shotgun, but now you want to upload a beauty frame to display as the thumbnail for your Version. We'll assume you already have the image made (located on your machine at /v1/gun/s100/010/beauties/anim/100_010_animv1.jpg) . And since you've just created your Version in Shotgun, you know its id
is (214).
sg.upload_thumbnail("Version", 214, "/v1/gun/s100/010/beauties/anim/100_010_animv1.jpg")
Shotgun will take care of resizing the thumbnail for you. Assuming all goes well, you won't see anything returned. If something does go wrong, an exception will be thrown and you'll see the error details.