• Hi Guest!

    Please be aware that we have released a critical security patch for VaM. We strongly recommend updating to version 1.22.0.7 using the VaM_Updater found in your installation folder.

    Details about the security patch can be found here.

[Coding] Thumbnails in FileBrowser

Nickon7777

Active member
Messages
23
Reactions
160
Points
28
Hi All!
In my plugin I want to make a possibility to see thumbnails when the user opens the file browse dialog (like VaM person appearance dialog can: it shows a .jpg file with the same name as a preview).
For that I use code like following:
C#:
string ext = "custom"; // "json", "vap",... work fine
SuperController.singleton.GetMediaPathDialog(callback, ext, PLUGIN_DATA_DIRECTORY, false, true, false, null, true, null, false, false);
Unfortunately it works only for VaM-reserved file extensions like "vap", "vam", "scene", etc. If I understand correctly from FileBrowser.CreateFileButton() implementation those extensions are hardcoded and there is no way to make it work for some custom file extension. Hope I am wrong and someone help me to find the solution.
 
Back
Top Bottom