<div dir="ltr">I noticed that as well.<div><br></div><div>Not a great fan of javascript based scripting api's, PS has that and it's a pain to translate between languages in a pipeline.</div><div><br></div><div>Think I would definitely propose something along the lines of working both with the community and through your company, as it will stand to benefit more people that way.</div>
<div><br></div><div><br></div><div>Ash</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On 6 June 2014 10:06, Boudewijn Rempt <span dir="ltr"><<a href="mailto:boud@valdyas.org" target="_blank">boud@valdyas.org</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="">On Fri, 6 Jun 2014, Ashley Retallack wrote:<br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
I know this may have been covered before but is there any thought of possibly having a python API implemented?<br>
We use python extensively in VFX work, to do interfaces and connections between application and for controlling asset workflow between software.<br>
</blockquote>
<br></div>
Well, we used to have one, actually, but that was very limited and hard to maintain. It used the kross framework to expose an api to various scripting languages: python, ruby, javascript. We removed it for Krita 2.6 because it was too limited and too hard to extend.<br>
<br>
Before that we had a javascript-based scripting api, but that got retired in 2006.<br>
<br>
I have been investigating adding a PyQt or Pyside based extension api. The main problem is maintenance: as long as we only have demo scripts, the extension will bitrot, so we'll have to start doing real stuff in Python.<br>
<br>
I prefer Python myself, because that's how I got started with Qt (<a href="http://valdyas.org/python/book.html" target="_blank">http://valdyas.org/python/<u></u>book.html</a> -- that's more than ten years ago already!).<br>
<br>
An alternative would be to use Qt's javascript scripting stuff, but I'm not a huge fan of that idea.<div class=""><br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Alternatively, what might be involved in us implementing one ourselves?<br>
</blockquote>
<br></div>
There are several possibilities:<br>
<br>
* Contract with my company, KO GmbH to implement a python API following your specifications. We've got four experienced Krita developers available, and, well, this is exactly what KO GmbH exists for :-).<br>
<br>
* Sponsor the Krita Foundation to add the feature. The foundation is pushing development of Krita in all possible ways -- we're sponsoring one full-time developer right now and are starting a funding campaign to double that.<br>
<br>
* Implement it yourselves.The best way to do that is still to work together with the community. You'd need to create a new scripting plugin that exposes the Krita internals you need. Krita is C++ and Qt, so either using PyQt and sip or Pyside and shiboken, against either a QObject-based shim layer between the real Krita internals, or directly against the Krita internals. Given Krita's license, the resulting plugin has to be open source, and it would be best to develop that together with the community instead of doing a big code drop at the end of the work.<span class="HOEnZb"><font color="#888888"><br>
<br>
<br>
Boudewijn<br>
</font></span></blockquote></div><br></div>