@extendscript/sui.module.jaxon

1.0.0 • Public • Published

jaxon

version

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.jaxon

Include

#include 'node_modules/@extendscript/sui.module.jaxon/jaxon.js'

Use

  1. Load the module by creating a reference.

    var Jaxon = Sky.getUtil("jaxon")

  2. Create a new Preset Manager by initialising the filename and JSON-Schema:

    var presetManager = Jaxon.init( "file_name.json", schema);

  3. Create get() and set() functions that move data in and out of your interface and attach them to your DataPort

    var MyDataPort = { getData: get, renderData: set }

  4. 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 myTarget

We keep a log of test results

More info

Read the docs

Package Sidebar

Install

npm i @extendscript/sui.module.jaxon

Weekly Downloads

2

Version

1.0.0

License

MIT

Unpacked Size

55.3 kB

Total Files

17

Last publish

Collaborators

  • extendscripter
  • fabianmoronzirfas
  • fabian.moron.zirfas
  • vogelino