Extension: Change opacity, colour and set stroke=none

Post questions on how to use or achieve an effect in Inkscape.
Mark

Extension: Change opacity, colour and set stroke=none

Postby Mark » Mon Jul 13, 2009 11:36 pm

Hey :)

I've been using Inkscape for a short while now, and I must say, I'm impressed. The first time I tried it, I thought it was kind of "unfinished". I gave it another try, and now I'm using Inkscape more than GIMP!

I have a specific task I do over and over again:

On selected objects do
* Change fill-colour to black
* Set opacity (not alpha) to 10%
* Remove stroke (set to none)

Obviously I have to make this function myself, but I have never programmed in Python before. I have programmed in other languages (I study computer science, only first year), but I only managed to recolour to black. I have no idea how to do the other things, and to be honest, I don't know if I want to learn an "old" version of Python, just to do this relatively simple task. I might if I was to write other extensions, but I do not see the need right now. I downloaded InkMoz since I have a little more experience with JavaScript, but when I ran the example, Inkscape crashed with no usable error message (I did install XULRunner and add it to the environment path).

So, now I am asking you. Does any of you have the skill to make an extension with the functionality described above? That would really help me a lot.

Thanks in advance.

Mark

~suv
Posts: 2272
Joined: Sun May 10, 2009 2:07 am

Re: Extension: Change opacity, colour and set stroke=none

Postby ~suv » Tue Jul 14, 2009 3:42 am

Did you try the command 'Edit > Paste Style'? Maybe this is useful for your current repetitive task…

Mark

Re: Extension: Change opacity, colour and set stroke=none

Postby Mark » Tue Jul 14, 2009 3:59 am

Great, that works perfect! I am using a Danish version, and the translation doesn't really make sense (and nothing happened last time I tried it), so I forgot all about it.

Thank you so much :)


Return to “Help with using Inkscape”