Hello,
I am trying to write scripts for inkscape for my personnal use. However, although I have found a list of verbs (--verb-list), I cannot find the command that I would like to use.
I am trying to modify the fill color of an object. If you know this command, I'd be glad to know it. I found many more advanced and fancy commands, but can't get hold of this simple one.
Anticipating other similar problems, I would like to know if there is a way to get to read the log file from Inkscape. I figured that if I try out some modification within Inkscape GUI, I might be able to identify the corresponding verb command by looking at the log file afterwards.
If there is a better way to learn the commands, for instance a kind of macro recorder, I would be happy to know. But looking at the forums, posts and wishlists, this feature has not been implemented yet.
Thanks for your help.
How to identifiy inkscape commands and verbs
Re: How to identifiy inkscape commands and verbs
BosonFute wrote:I am trying to write scripts for inkscape for my personnal use. However, although I have found a list of verbs (--verb-list), I cannot find the command that I would like to use.
I am trying to modify the fill color of an object. If you know this command, I'd be glad to know it. I found many more advanced and fancy commands, but can't get hold of this simple one.
You cannot do this with verbs alone because verbs do not take arguments. The only related verb is to open the Fill&Stroke dialog (DialogFillStroke). There is currently no way to specify which paint server you want to change (fill or stroke), nor to which value you want to set it (new flat fill color, a gradient, or a pattern, …).
Re: How to identifiy inkscape commands and verbs
Thanks for the reply.
This is too bad. So the only thing to do is to set the color by hand with the dialog. Or do you think there might be a way to bypass the difficulty ? I guess that writting any extension, one always has to use command line in the end.
Is my only hope that someday somebody will add to the verbs the possibility to take arguments ? Because I have got 200 colors, each corresponding to one of 200 objects, and I was really hopping to automate this action
This is too bad. So the only thing to do is to set the color by hand with the dialog. Or do you think there might be a way to bypass the difficulty ? I guess that writting any extension, one always has to use command line in the end.
Is my only hope that someday somebody will add to the verbs the possibility to take arguments ? Because I have got 200 colors, each corresponding to one of 200 objects, and I was really hopping to automate this action