Skip to content

Latest commit

 

History

History
31 lines (23 loc) · 1.17 KB

File metadata and controls

31 lines (23 loc) · 1.17 KB

ESL-PyPlug

ESL standard python adapter

This lib can be added to Plugins directory of your ESL c++ standard Photoshop application to provide a way to use python-written plugins.

This is a plug-in with ML-based algorithm that modifies picture with an according style

Building

mkdir build
cd build 
cmake ..
make -j

User usage

Copy libpyplug.so to Plugins dir of your Photoshop. Add python plugins to PythonPlugins dir. Enjoy.

Dev usage

Basically, libpyplug expects your python plugin to have the same interface as ESL c++ plugin, meaning the following:

  1. implement plugin class with getTexture(), apply(), buildSetupWidgets() functions
  2. add global init_module() function with setToolBarSize() and addTool() calls

You can use the same API as ESL c++ standard, with minor differences:

  1. getPicture()/setPicture() handles 3d numpy arrays instead of class Picture

For more info see examples.