Python script discovery in Krita

Eliakin Costa eliakim170 at gmail.com
Mon Oct 30 17:13:13 UTC 2017


Hi Brendan

I've been really busy these days, sorry for not give you enough attention :(

>> I'd also like to be able to make Krita reload the Python scripts so I
don't need to keep restarting on change of script. Is that possible?

You can write plugins for menu (as you told in your tutorial), dockers and
pointing action to shortcuts whithout any menu (like ten brushes). In this
cases, you need to rebuild or paste files in resources folder (as Wolthera
told). Fortunately, you can write your scripts in the Scripter or load from
your files and execute it on the fly(without restart Krita).



2017-10-30 11:45 GMT-03:00 Wolthera <griffinvalley at gmail.com>:

> python scripts are stored in the resources folder. They should go into a
> folder named "pykrita", just like the one in the bundled resources folder.
> (Which is in the install location somewhere under share). Krita uses
> desktop files to find most of its plugins, it is best that boud explain
> that part.
>
> On Mon, Oct 30, 2017 at 7:14 AM, Brendan Scott <disposableemail at apps.
> opensourcelaw.biz> wrote:
>
>> Can someone explain how Krita discovers custom python scripts? (in the
>> current build/how it's intended to work when 4.0 is released)
>> eg: If I'm a user and want to use a 3rd party script, what will I have to
>> do to get it working?  What will the developer need to provide? (the sum of
>> my knowledge is at https://kritascripting.wordpress.com/, which I have
>> posted previously)
>>
>> I guess a related question is how will developers package their scripts?
>>
>> I'd also like to be able to make Krita reload the Python scripts so I
>> don't need to keep restarting on change of script. Is that possible?
>>
>> Thanks
>>
>>
>> Brendan
>>
>
>
>
> --
> Wolthera
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kimageshop/attachments/20171030/45ee7303/attachment.html>


More information about the kimageshop mailing list