| 1 |
<?xml version="1.0" encoding="utf-8"?> |
| 2 |
<!DOCTYPE html> |
| 3 |
|
| 4 |
<html xmlns="http://www.w3.org/1999/xhtml"> |
| 5 |
|
| 6 |
<head><title>BBD's Krita Script Starter</title> |
| 7 |
</head> |
| 8 |
<body> |
| 9 |
<h3>BBD's Krita Script Starter</h3> |
| 10 |
This script sets up the various files that Krita expects to see |
| 11 |
when it runs a script. That is: |
| 12 |
<ul><li>the .desktop meta data file</li> |
| 13 |
<li>the package directory</li> |
| 14 |
<li>the __init__.py file</li> |
| 15 |
<li>the main python file for your package</li> |
| 16 |
<li>the Manual.html file for your documentation</li> |
| 17 |
</ul> |
| 18 |
|
| 19 |
It will correctly name your package, do relevant imports, |
| 20 |
create a class of the relevant type (ie Extension v Docker) |
| 21 |
and name the class based on the name you choose for your script. |
| 22 |
<p> |
| 23 |
<h3>Usage</h3> |
| 24 |
When you run the script it will present a dialog box. Enter the name |
| 25 |
of your script in the entry box provided and choose whether you |
| 26 |
want the script to be an Extension (added to the scripts menu) |
| 27 |
or a Docker (available to be opened as a docker). Type in |
| 28 |
a comment for the script (this is displayed in the Krita dialog |
| 29 |
when enabling scripts) and, if you want, the text of how |
| 30 |
you want your script to appear in the menu. |
| 31 |
You can choose to have your script automatically enabled by |
| 32 |
checking the "Enable Script" checkbox. |
| 33 |
<p> |
| 34 |
These files will be created in the pykrita subfolder of your |
| 35 |
resources directory. <p> |
| 36 |
<h3>Warning</h3> |
| 37 |
If a script with the name you choose already |
| 38 |
exists a warning will be shown in the status box. If you click |
| 39 |
Create Script any files that already exist will be overwritten |
| 40 |
without further confirmation, so pay attention to any warnings. |
| 41 |
|
| 42 |
</body> |
| 43 |
</html> |
| 44 |
|