https://github.com/jonboh/krita-vault-integration
A set of scripts to integrate krita with my note taking
https://github.com/jonboh/krita-vault-integration
Last synced: 9 months ago
JSON representation
A set of scripts to integrate krita with my note taking
- Host: GitHub
- URL: https://github.com/jonboh/krita-vault-integration
- Owner: jonboh
- Created: 2024-04-08T16:53:23.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2025-03-26T09:10:35.000Z (over 1 year ago)
- Last Synced: 2025-03-26T10:24:03.784Z (over 1 year ago)
- Language: Python
- Size: 3.91 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
To iterate over the scripts use krita `Scripter`, load the file that you are iterating over and use `Alt+r` and `Ctrl+r` to refresh and rerun the script.
For example to iterate over `crop2content` modify the file to run the function in it:
```python
# the rest of the file
# this will run when the script is called in Scripter. You can use prints to see the output in Scripter
# debug messages in QtCore.qDebug are only shown in the shell that runs krita.
try:
active_document = Krita.instance().activeDocument()
crop2content(active_document)
QtCore.qDebug(f"imported and run done")
# crop2content()
except Exception as e:
QtCore.qWarning(f"Failed to run crop2content with: {e}")
QtCore.qDebug(f"crop2content done")
```