Using API to load thumbnails?

Nick Jushchyshyn (work)'s Avatar

Nick Jushchyshyn (work)

19 Aug, 2009 04:00 PM via

Is there a way to use the API to upload thumbnail images?
The "Files" and "Attachements" examples are pretty much empty at the moment.

  1. Support Staff 2 Posted by cameron on 19 Aug, 2009 05:13 PM

    cameron's Avatar

    Hi Nick,

    We are actually in the midst of totally reworking our file and attachment handling, and anything I give you will be broken in a month.

    We will have API calls to upload, download and manage all kinds of files including thumbnails -- it will be very cool.

    In the meantime, what you can do is place the thumbnails on your own web server and use the shot.thumbnail_loc to point to them. The thumbnail_loc takes a URL (with protocol, http://myserver.com/thumbnail.jpg) and will override the attachment thumbnail setting. You can try it in the UI to get a feel for what it does. That's what I do when I have to import lots of shots.

    Cheers,
    Cameron

  2. cameron closed this discussion on 19 Aug, 2009 05:13 PM.

  3. Nick Jushchyshyn (work) re-opened this discussion on 19 Aug, 2009 05:31 PM

  4. 3 Posted by Nick Jushchyshyn (work) on 19 Aug, 2009 05:31 PM

    Nick Jushchyshyn (work)'s Avatar

    OK .... so how would the thumbnails be associated with their shots? Is that a manual process still or something that can be connected via scripting?

  5. Support Staff 4 Posted by cameron on 19 Aug, 2009 05:43 PM

    cameron's Avatar

    Yes, you set the shot.thumbnail_url field via the API, usually setting it to some standard naming pattern based on the sequence and shot codes. You can either set it as you import the shots, or loop through all the existing shots and update that field if it doesn't already exist.

    This requires that you get all your file names into a standard pattern, on the Mac I use A Better Find Rename 8.0 to rename files. Not sure what the equivalent is on Windows.

    Cheers,
    Cameron

  6. cameron closed this discussion on 19 Aug, 2009 05:43 PM.

Comments are currently closed for this discussion. You can start a new one.