• Hi Guest!

    We have posted a new VaM2 dev log on Patreon, starting a monthly cadence of written progress updates between Beta releases. Highlights include the new Gizmos System, Selection Carousel, and Modes System with Context-Specific Editing. Beta1.2 is 15 of 21 items complete.

    Read the full post on Patreon, or follow progress on the public Trello roadmap.

Script Screenshot For Plugin Save/Load

CodeyChaos

New member
Joined
Jul 2, 2023
Messages
13
Reactions
2
Thanks to using MacGruber_IdlePoserUI.cs as a guide, I'm scripting a save system for my plugin that saves in the usual VaM way. The only thing missing is the screenshot option that usually pops up, like when saving a scene for example. Just wondering if there's another plugin out there that could show me how this would be scripted?
 
Just put
C#:
SuperController.singleton.DoSaveScreenshot(path+".jpg");
at the end of your save method. 'path' has to be the path to your json file without the extension. See ShakeIt.cs for a refeernce.
 
To load set the filter in Supercontroller.singleton.GetMediaPathDialog() to "json". The jpegs corresponding to the actual json should be automatically presented to you.
 
Back
Top Bottom