Thumb nails at publish time

Can anyone point me in the direction of where the logic for thumbnail captures happen at publish time? I love the thumb nail system but what I am looking to do is augment that just a bit and automatically capture a thumb nail at publish time in maya if the user has not made one. I know the call is upload_thumbnail I just don’t happen to see where the call for this happening.

4 Likes

Sure! The uploading of the thumbnail to the PublishedFile entity is handled via the register_publish method.
The thumbnail is added to the publish data here:


And the publish data is then registered here:

Under the hood, the sgtk API is using the upload_thumbnail method.

4 Likes

Woohoo! That works perfectly I am off and running. Thanks!

2 Likes