• Hi Guest!

    We are extremely excited to announce the release of our first Beta1.1 and the first release of our Public AddonKit!
    To participate in the Beta, a subscription to the Entertainer or Creator Tier is required. For access to the Public AddonKit you must be a Creator tier member. Once subscribed, download instructions can be found here.

    Click here for information and guides regarding the VaM2 beta. Join our Discord server for more announcements and community discussion about VaM2.

[Coding] Thumbnails in FileBrowser

Nickon7777

Active member
Featured Contributor
Joined
Sep 15, 2024
Messages
25
Reactions
187
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