Enhancement to the Scatter Extension

Bug #617045 reported by Rob Antonishen on 2010-08-12
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Inkscape
Wishlist
Rob Antonishen

Bug Description

I have made a small enhancement to the Scatter extension.

I have added an option to randomly pick the members of the pattern group (if the pattern is a group) when creating the scatter.

Attached is a zip of the modified py and inx files

Here is a sample image showing the result where the pattern was a group of 3 different shapes in four different colours (12 objects in the group).

http://www.majhost.com/gallery/ffaat/inkscape/scatter.png

-Rob A>

Rob Antonishen (rob-antonishen) wrote :
su_v (suv-lp) on 2010-08-12
tags: added: extensions-plugins
removed: enhancement extension scatter
Changed in inkscape:
importance: Undecided → Wishlist
su_v (suv-lp) wrote :

Nice! :) (tested with Inkscape 0.48+devel r9709 on OS X 10.5.8, Python 2.6.2)

Would it be difficult to add an option to keep the sort order (-> z-order) of the objects inside the group instead of randomize it? This would allow to use 'Scatter' similar to the extension 'Place Objects on Path' [1].

[1] http://wiki.inkscape.org/wiki/index.php/Extension_repository#Place_Objects_on_Path

Rob Antonishen (rob-antonishen) wrote :

Attached is a version that can optimally place the group items using sequential z-order.

From the Place Objects on Path description:
"Places objects on a curve. The curve is the object that has the lowest z-order (and which must be a path). Distances between objects remain the same as they were before placing. If objects can't be placed on the curve because of their distances they are left in place. Objects will not be modified; clones are allowed. Arrange distances between your objects manually first as curve position and direction."

The big difference here is that the modified extension does NOT consider the width (bounding box) of the individual objects. They are spaced equally based on the size of the group. This was because it was non-trivial to split the target paths non-uniformly.

The big advantage of the place objects on path extension is it looks like it respects the object spacing when placing them on a path, so it can be irregular.

Alvin Penner (apenner) wrote :

thanks, Rob!
tested and committed to bzr 9729

Changed in inkscape:
status: New → Fix Committed
su_v (suv-lp) on 2011-02-14
Changed in inkscape:
milestone: none → 0.49
su_v (suv-lp) on 2012-12-17
Changed in inkscape:
assignee: nobody → Rob Antonishen (rob-antonishen)
Bryce Harrington (bryce) on 2015-02-23
Changed in inkscape:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers