How to Use the Custom User Preset Model?
-
Is anyone familiar with the Custom User Preset Model, and perhaps could help?
I've written this test, but as the documentation instructs, I need to first save the object before I can use Object Persistence. How do I do this, and am I on the right track (below)? Thank you.
const var internalPresetHandler = Engine.createUserPresetHandler(); inline function LoadHostPluginData (obj) { Engine.showMessageBox("Load", obj.testItem, 2); }; inline function SaveHostPluginData () { return { "testItem": 7 }; } internalPresetHandler.setUseCustomUserPresetModel(LoadHostPluginData, SaveHostPluginData, true);
EDIT: Solution was to create the file by referencing it in the API.
-