![]() Registered Member ![]()
|
I can't find a guide to Krita's API in Python.
What I want to do is group several frames into three layers of animation. Then render the animation and save (png frames combined) and the document in .kra format. The python part to collect frames it's easy to me; but couldn't find a suitable source for Krita API in python for all the things I need (create layer, import frames in layer, hide layer, render animation and finally save the kra document). This is how far I went:
To be clear, if I print the content of all three array I get something like this:
While this is the pseudo-code I was thinking to use:
|
![]() Registered Member ![]()
|
I think all that sounds pretty doable... Did you check out the documentation the docs site?
https://docs.krita.org/en/user_manual/p ... rita-s-api it also has a couple links to the classes with the API. https://api.kde.org/extragear-api/graph ... index.html https://api.kde.org/extragear-api/graph ... Krita.html For an example with importing frames, you could see a plugin I wrote a bit ago that creates an images sequence from a video file and imports it into Krita . Animator video reference https://github.com/scottpetrovic/animat ... -reference (this file has almost all the python code https://github.com/scottpetrovic/animat ... mporter.py) |
Registered users: Bing [Bot], claydoh, Google [Bot], rblackwell, Yahoo [Bot]