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

Scripting "Listener"?

Tags: None
(comma "," separated)
cpurunninghot
Registered Member
Posts
3
Karma
0

Scripting "Listener"?

Thu May 28, 2020 4:39 pm
Does Krita have a window showing the python code for each command being used in the program? Many programs (e.g. blender) that have python scripting have this so it's easy to put together scripts by doing the actions manually and getting the relevant code from the "listener" window.

e.g in Blender, under the "Scripting" tab, at the bottom/left corner is the listener window which has output like this...
Code: Select all
bpy.ops.object.select_all(action='SELECT')
bpy.ops.object.select_all(action='DESELECT')
bpy.ops.transform.translate(value=(-1.62264, -0.80316, 2.32894), orient_type='GLOBAL', orient_matrix=((1, 0, 0), (0, 1, 0), (0, 0, 1)), orient_matrix_type='GLOBAL', mirror=True, use_proportional_edit=False, proportional_edit_falloff='SMOOTH', proportional_size=1, use_proportional_connected=False, use_proportional_projected=False)
User avatar
halla
KDE Developer
Posts
5092
Karma
20
OS

Re: Scripting "Listener"?

Thu May 28, 2020 5:09 pm
Well, no, because pretty much all of Krita is C++; the python bindings are a very thin veneer on top of an abstraction library that is in itself a very thin and limited view on Krita's internals.
cpurunninghot
Registered Member
Posts
3
Karma
0

Re: Scripting "Listener"?

Thu May 28, 2020 5:34 pm
Ah, that's unfortunate. It would a "nice to have" feature. Based on your description, I'd assume that it would involve quite a bit of manual labor for the devs to print out the equivalent commands as they happen.

Anyhoo, thx for the reply :D


Bookmarks



Who is online

Registered users: bartoloni, Bing [Bot], Evergrowing, Google [Bot], ourcraft