How to extract or generate thumbnail for Maya files?

How to extract or generate thumbnail for Maya files?

Anonymous
Not applicable
2,610 Views
6 Replies
Message 1 of 7

How to extract or generate thumbnail for Maya files?

Anonymous
Not applicable

Hi,

 

I would like to extract or generate thumbnails for given *.mb files on macOS and/or Windows.

 

1) Does Maya embed a thumbnail of the viewport upon saving into *.mb files?

2) Is there any way to extract or generate such image programatically or with a helper process?

 

I have the same situation with Photoshop files, where I can generate such small thumbnail with `libpsd`. Does something similar exist for Maya as well?

 

Thank you!

0 Likes
Accepted solutions (1)
2,611 Views
6 Replies
Replies (6)
Message 2 of 7

stuzzz
Collaborator
Collaborator

I've done that a long time ago.

- set a callback when maya save a scene which triggers a function

- That function is calling a QPixmap method to capture the focused viewport.

0 Likes
Message 3 of 7

Anonymous
Not applicable

Hi, thank you very much! Unfortunately I am looking for a solution that works where Maya is not installed (or at least not running anymore).

0 Likes
Message 4 of 7

mspeer
Consultant
Consultant

Hi!

 

The only option is to create sidecar files or add thumbnails to a special sub-folder in the project directory, however without Maya installed you can't render preview images.

0 Likes
Message 5 of 7

Anonymous
Not applicable

Oh, I see. Because most 3D applications save a viewport image inside the file upon saving, so that's unfortunate to hear it doesn't work with Maya. But thanks for the confirmation!

0 Likes
Message 6 of 7

mspeer
Consultant
Consultant
Accepted solution

Hi!

To create and use preview images in Maya please check this:

https://help.autodesk.com/view/MAYAUL/2020/ENU/?guid=GUID-67B3FB68-AAA4-415D-A37B-1EAC461613C0

0 Likes
Message 7 of 7

Anonymous
Not applicable

Cool! That looks very promising. Would be good if that could be done automatically, but that looks like what I need! 🙂

0 Likes