This forum has been archived. All content is frozen. Please use KDE Discuss instead.

Python: Cloning Documents to New View

Tags: None
(comma "," separated)
saedjubarin
Registered Member
Posts
58
Karma
0
If I do this, Krita crashes. Everything else I've tried results to nothing visible happening.

I guess I'm just not having the right approach.

Code: Select all
app = Krita.instance()
doc = app.activeDocument()
clone = doc.clone()
doc.waitForDone()
clone.waitForDone()
doc.refreshProjection()
clone.refreshProjection()
app.activeWindow().addView(clone)
app.setActiveDocument(clone)


Bookmarks



Who is online

Registered users: Bing [Bot], claydoh, Evergrowing, Google [Bot], rblackwell