<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[How to Use the Custom User Preset Model?]]></title><description><![CDATA[<p dir="auto">Is anyone familiar with the Custom User Preset Model, and perhaps could help?</p>
<p dir="auto">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.</p>
<pre><code>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);
</code></pre>
<p dir="auto">EDIT: Solution was to create the file by referencing it in the API.</p>
]]></description><link>https://forum.hise.audio/topic/9637/how-to-use-the-custom-user-preset-model</link><generator>RSS for Node</generator><lastBuildDate>Thu, 12 Nov 2026 13:58:14 GMT</lastBuildDate><atom:link href="https://forum.hise.audio/topic/9637.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 16 May 2024 21:55:06 GMT</pubDate><ttl>60</ttl></channel></rss>