Difference between revisions of "Doc:Plugins"

From Synfig Studio :: Documentation
Jump to: navigation, search
(Basic notes about plugins)
 
(Page is moved to https://synfig.readthedocs.io/en/latest/plugins.html)
 
(16 intermediate revisions by 3 users not shown)
Line 1: Line 1:
<!-- Page info -->
+
This page is moved to https://synfig.readthedocs.io/en/latest/plugins.html
{{Title|Plugins}}
+
{{Category|Manual}}
+
{{Category|NewTerminology}}
+
<!-- Page info end -->
+
 
+
= Summary =
+
The Plugins feature allows to run custom python scripts directly from Synfig Studio menu. Each script takes .sif file as first argument and should modify its contents in some way. After script execution finished, the file is automatically reopened back in Synfig Studio.
+
 
+
All plugins are located in the "Plug-Ins" submenu of the canvas.
+
 
+
= Rationale =
+
People often write some scripts to make useful things on Synfig (sif) files. The most of these scripts are written in python. But for ordinary users running custom scripts from terminal is tricky. With plugins feature user can install scripts as easy as they copy files and transparently run them in the same way as they use standard Synfig Studio commands. Also, runing scripts from menu is much faster than from terminal and it greatly improves the workflow for advanced users. Having this feature allows to easily add simple functions to Synfig Studio by writting scripts in python.
+
 
+
= How to install plugins =
+
 
+
Plugin is a directory, containing the python script (*.py file), plugin.xml and maybe some other files if they are required by python script.
+
 
+
To install the plugin user should copy its directory into USER_DIRECTORY/SYNFIG_CONFIGURATION_DIR/plugins. For Linux case this is equivalent to "~/.synfig/plugins".
+
 
+
The system-wide location for the plugins is USER_DIRECTORY/SYNFIG_CONFIGURATION_DIR/plugins
+
 
+
= Tutorial =
+
 
+
<videoflash>De9UhUkzNiY|425|344</videoflash>
+
 
+
 
+
= Details =
+
 
+
Each plugin located in a separate subdirectory with unique name. The part of the name before first "-" symbol is used to set the group plugin belongs to (not implemented yet). The main information about plugin (plugins name and script to execute) is stored in the plugin.xml file. It's self-explanatory.
+
 
+
All scripts are interpreted with python 3.
+
 
+
In Linux and Mac OSX case Synfig Studio looks for "python" or "python3" binary. For windows case Python binary is expected at INSTALL_PREFIX/python/python.exe. New environment variable SYNFIG_PYTHON_BINARY allows to set custom path to the python 3 binary.
+

Latest revision as of 12:37, 1 May 2020

Languages Language: 

English


This page is moved to https://synfig.readthedocs.io/en/latest/plugins.html


Languages Language: 

English