Dateiicon
 
 

540

 

4499

objectgradient

von biapy

Inkscape extension to apply a gradient of colors accross selected objects. Once installed, the extension is available at "Extensions -> Render -> Object gradient".

Inkscape Extensions

Größe
17,6 KB
Erstellt
Typ
application/zip
General Public License v3 (GPLv3)

Link

Maren Hachmann schrieb :

Thanks for sharing, biapy!

Can you explain the difference to this workflow:

* create a set of boxes
* select them all
* switch to gradient tool
* make sure the lock icon to create linked gradients is activated
* use the gradient tool on the selection

Maren Hachmann schrieb :

Ah, I see now. It creates a plain fill color for each object, depending upon it's location - interesting :)

Maren Hachmann schrieb :

No, doesn't depend upon object location (yet), assumes regular distances between objects. So it's a bit like 'Interpolate' extension, but interpolates the style without the morphing.

biapy schrieb :

It does depend upon object location. The left to right, right to left, top to bottom, bottom to top options are based respectively on: X position (left edge), X position + width (right edge), Y position + height (top edge), Y position (bottom edge).

If this is not the behaviour you encounter, it is due to something i've done wrong... a bug.

Maren Hachmann schrieb :

No, I think it works as it's supposed to :)

What I meant is that it seems to assume that the objects are spaced equally. It takes into account the order of the objects on a given axis, but not their exact location on that axis (at least it did so in my single test, with a couple of differently-sized objects, placed with varying distances).

(it could, by using the object center to fetch the color value, for example. But that's a design decision that would also have a couple of other implications, e.g. the color of the first and last object would then not be the same as the one defined for the gradient start and end.)

ilomo schrieb :

Hi, I'm trying to make it work but I get this message... dunno what's happening...

raceback (most recent call last):
File "objectgradient.py", line 409, in <module>
effect.affect()
File "/usr/share/inkscape/extensions/inkex.py", line 268, in affect
self.effect()
File "objectgradient.py", line 372, in effect
selection_dimensions = self.get_dimensions(self.options.ids)
File "objectgradient.py", line 123, in get_dimensions
return dimensions
UnboundLocalError: local variable 'dimensions' referenced before assignment

biapy schrieb :

Hi,

this is a bug trigerred when no object is selected before launching the plugin. Please select at least two objects for the plugin to work. I'll fix this soon.

ilomo schrieb :

Ok, I've tried the way you say by selecting two circles and just get two absolute colors, with no gradient; I mean: the fist gradient color is applied to the fist object and the second to the second object.

What am I doing wrong?

Thanks for your extension, keep waiting for your response.

Maren Hachmann schrieb :

... maybe updating the description could help ;-) There are no gradients produced by this extension. It creates flat color fills along a gradient. For the other option, just select all objects and apply a gradient to all of them at once. Make sure they are linked, in case you want to change the color.

brynn schrieb :

ilomo, if I understand how this extension works, you are getting the correct result. If you want a real gradient, just use the gradient tool. Maybe the author will change the name of the extension, so it's not as confusing?

brynn schrieb :

Hello,
Thank you for providing this extension for Inkscape users!

This is just to let you know that most 3rd party Inkscape extensions, like this one, probably will not work with the upcoming new Inkscape version, the long-awaited version 1.0.

Here is the info you need to update this extension, so that it will work with 1.0 and future versions.
https://wiki.inkscape.org/wiki/index.php?title=Updating_your_Extension_for_1.0

If you have further questions, you can contact Inkscape developers via mailing lists (https://lists.inkscape.org/postorius/lists/?all-lists), forum (https://inkscape.org/forums/extensions/), or the chatroom (https://chat.inkscape.org/channel/team_devel)

If you have already updated it, please disregard this message.

All best,
brynn

Bitte melde Dich an, um einen Kommentar zu verfassen!