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

macros, how acting

Tags: None
(comma "," separated)
neljakeelne
Registered Member
Posts
2
Karma
0

macros, how acting

Fri Jan 28, 2011 1:04 pm
I study the nice editiom KRITA 2.3.1, specially the macros.

Sometimes I have such problems:
1. Sometimes the saved macro draws nothing. After that I find such way to fix macro.

The code begins allways:
<RecordedActions>
<RecordedAction opacity="1" strokeStyle="Brush" path="/1"

I see:
nonacting macro has
path="/3"
path="/4"

Useing Notepad I replace all "/4" or "/3" in the code with "/1" (sometimes "/0"). And the code start woring!!!

Why I have mistakes with path="/1" ?

2.
Macro acting in the drawing only on layers nr2 and more. On layer 1 macro makes no picture.
User avatar
cyrille
Moderator
Posts
110
Karma
1

Re: macros, how acting

Fri Jan 28, 2011 1:59 pm
Hi,

Well that is something I still need to find a proper way to handle.

Basically "/" represent the root of the image, so "/0" is the first layer, "/1" is the second layer... But you can also have relative path, so for instance "." represent the current layer. So if you replace "/1" by "." in your krarec, you would be able to always apply the macro on the current layer.

For 2.4, I plan (at least) to make the macro editor have an editor for the layer path. And possibely decide for a proper way to select the path that is saved in the macro, there are different possible solutions:
* upon saving, ask if the user wants the macro to applies all actions on the current layer
* make layer pathes relative to the current layer when the user select "start recording". This would not solve the problem for "save all action", but maybe we should remove that option from the menu.


Cyrille Berger
Krita developer and Calligra release coordinator
blog


Bookmarks



Who is online

Registered users: bancha, Bing [Bot], Google [Bot], Sogou [Bot]