• 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.
  • Hi Guest!

    VaM2 Resource Categories have now been added to the Hub! For information on posting VaM2 resources and details about VaM2 related changes to our Community Forums, please see our official announcement here.

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