@extendscript/sui.module.jaxon
v1.0.0
Published
ExtendScript Preset Manager
Readme
jaxon
Module
Jaxon is an ExtendScript Preset Manager that uses JSON-schema to keep presets validated. It loads/saves presets to and from the user data-folder.
Install
npm install @extendscript/sui.module.jaxonInclude
#include 'node_modules/@extendscript/sui.module.jaxon/jaxon.js'Use
Load the module by creating a reference.
var Jaxon = Sky.getUtil("jaxon")Create a new Preset Manager by initialising the filename and JSON-Schema:
var presetManager = Jaxon.init( "file_name.json", schema);Create
get()andset()functions that move data in and out of your interface and attach them to yourDataPortvar MyDataPort = { getData: get, renderData: set }Now attach the widget to your interface:
presetManager.Widget.attachTo( Window, KeyID, MyDataPort );
Test
We can test the code against a range of targets:
npm run test myTargetWe keep a log of test results
More info
Read the docs
