List Info

Thread: Patch to run Krita scripts from commandline




Patch to run Krita scripts from commandline
country flaguser name
Germany
2007-02-25 20:11:29
Hi *

attached patch makes it possible to use the kross-app
delivered with kdelibs 
to run Krita-scripts from the commandline. That's not only
useful for 
propably automated batch-processing or other things where
someone does like 
to have things automated rather then to click somewhere, but
also for testing 
new scripts.

The patch does mainly introduce some if()-checks for the
statusbar and the 
mainwindow since both are NULL while there exist a
KisDoc2+KisView2 if run 
from the commandline. Also it was needed to switch 
KisDoc2::createViewInstance from protected to public since
it's used at the 
scripting plugin to create a KisView2-instance from within
an empty KisDoc2 
instance.

It's not perfect yet since on shutdown (after save is done),
it still crashes 
at krita/image/tiles/kis_tilemanager.cc:249 but at least
it's a start + the 
attached sample script actualy produces what it should
produce 

So, ok to commit?

-- 
Sebastian Sauer aka dipesh[sebsauer]
http://www.dipe.or
g/public_key.asc
Fingerprint: 8F1E 219B 16E6 4EC7 29CC F408 E193 65E2 9134
2221
Coder in http://www.koffice.org
&& http://www.kmldonkey.org


_______________________________________________
koffice-devel mailing list
koffice-develkde.org
h
ttps://mail.kde.org/mailman/listinfo/koffice-devel

  
  
[1]

about | contact  Other archives ( Real Estate discussion Medical topics )