Bug 387324 - The batchmode flag doesn't work
Summary: The batchmode flag doesn't work
Status: RESOLVED FIXED
Alias: None
Product: krita
Classification: Applications
Component: Scripting (show other bugs)
Version: git master (please specify the git hash!)
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: Krita Bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-11-26 19:01 UTC by wolthera
Modified: 2018-02-08 15:37 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description wolthera 2017-11-26 19:01:16 UTC
Make a python script that does this:

1. Get all open documents
2. Turn on batchmode
3. Export each document as a png, or something.

4. then, open a few documents and run script. Observe regardless of batchmode, you will get the export config windows.

For the comic project management docker and eliakins scripts, we use node->save() on the root layer, which does seem to work...

This is since the async saving branch merge.
Comment 1 Halla Rempt 2018-02-08 15:37:56 UTC
Tested with

from krita import *
d = Krita.instance().activeDocument()
d.setBatchmode(True)
d.saveAs("/home/boud/test.png")

This no longer pops up a config window.