Diffusion Krita 2d564eec6b0a

First take at SeExpr bundleable scripts

Authored by lsegovia on Jun 24 2020, 1:22 PM.

Description

First take at SeExpr bundleable scripts

This commit adds the KoResource infrastructure (KoResource server, MIME
type entry, chooser widget) to load and apply SeExpr scripts.

The container was modeled after Anna Medonosová's work on gamut masks:
so far, there is a "SeExpr script package" Zip file with .kse extension,
containing two files: preview.png and script.se. The latter is loaded
and inserted on Disney's SeExpr's ExprEditor widget as an expression.

TODO:

  • Be able to *save* scripts as bundleable resources
    • This needs to figure out where/how to render a preview
  • Be able to *bundle* scripts e.g. inside Deevad's bundle package
  • Additional metadata