Skip to content

Krita remote control plugin. Exposes Krita's Python interpreter on localhost:12174.

License

Notifications You must be signed in to change notification settings

mafik/krita-localhost

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Krita localhost Plugin

A tiny plugin that listens on localhost:12174 and allows you to issue arbitrary python commands to Krita.

The port was chosen as it's the l33t spelling of "(K)RITA".

Why?

  • it allows you to control Krita from virtually any language (Bash, Golang, C++, you name it)
  • you can play with Krita's API using your regular Linux editor cat script.py | nc localhost 12174.

Usage

  1. Import plugin into Krita (Tools -> Scripts -> Import Python Plugin from Web... -> https://github.com/mafik/krita-localhost). Alternatively download the zip file and use the Import Python Plugin from File... option.

  2. In a terminal, use netcat to connect:

$> nc localhost 12174
print('hello world!')
hello world!
  1. Profit!

Limitations

Thread safety is based on having positive thoughts. It works for me but could cause some issues when you put it under load. If you know how to fix it, please do 🙏

About

Krita remote control plugin. Exposes Krita's Python interpreter on localhost:12174.

Topics

Resources

License

Security policy

Stars

Watchers

Forks

Sponsor this project