Script Screenshot For Plugin Save/Load

CodeyChaos

New member
Messages
13
Reactions
2
Points
3
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