Jaxon is an ExtendScript Preset Manager that uses JSON-schemas to keep presets validated. It also makes it easy to load and save presets to the user data-folder in JSON format.
-
Include
jaxon.jsxinc
into your script using the preprocessor directive:#include jaxon.jsxinc
-
Create a new Preset Manager with your JSON-Schema:
var Jaxon = new presetManager( "file_name.json", Schema);
-
Create
get()
andset()
functions that move data in and out of your interface and attach them to yourDataPort
var myDataPort = { getData: get, renderData: set }
-
Now attach the widget to your interface:
Jaxon.Widget.attachTo( Window, KeyID, myDataPort );
- Wiki: API overview
- JSONSchema: Quick schema generation
- Sample: Implementation sample
All dependencies and polyfills are included. You can exclude them by running make dependent
this will exclude the following dependencies:
Bugs and feature requests are tracked with the github issue tracker. Pull requests are welcome!
MIT license (MIT)