Thumbnails for workfiles

Did some more thinking and also testing out ideas and this is definitely true - you want to see the state per workfile, not for the asset/shot.

I actually even want the thumbnails laid out visually per workfile directly instead of only the right-hand side thumbnail. So preferably the list would also show the thumbnails.

I was thinking of prototyping it for now by just saving a {workfile}_thumbnail.jpg file or alike next to the workfiles, and when found that then the UIs would show it. It’d be the most trivial implementation that’d not require any database access, etc. It’d not be site-sync ready but I believe actual (non-published) workfiles aren’t anyways so I guess it’s a good start since it’s the easiest.

Then upon save for each DCC a screenshot would just be automatically grabbed from the current active viewport, e.g.:

# psuedocode (tested now)
import maya.api.OpenMayaUI as omui
import maya.api.OpenMaya as om
view = omui.M3dView.active3dView()
image = om.MImage()
view.readColorBuffer(image, True)
image.writeToFile(f"{workfile}_thumbnail.png", "png")

# jpg actually preserves viewport background color so might be better
image.writeToFile(f"{workfile}_thumbnail.jpg", "jpg")

So that however the user saves there’s no required user interaction for it.

1 Like