Mobile app version of vmapp.org
Login or Join
Turnbaugh909

: How to randomly distribute objects only in selected area? Imagine you wanted to design a glass of soda. First you create a glass: It's, in fact, a beaker - but that doesn't matter Now you

@Turnbaugh909

Posted in: #Inkscape

Imagine you wanted to design a glass of soda. First you create a glass:


It's, in fact, a beaker - but that doesn't matter

Now you copy the object, make it smaller, black and delete the stroke. Then to try to center it in beaker:



Finally, you want some pretty bubbles. How can I randomly distribute them in the brown area, besides copy pasting (which sucks for complicated shapes)?

10.02% popularity Vote Up Vote Down


Login to follow query

More posts by @Turnbaugh909

2 Comments

Sorted by latest first Latest Oldest Best

 

@Kaufman565

You can use Randomize centers in both dimensions button under Rearrange in the Align and Distribute dialog.


Select all the objects you want to randomize, then hold down the Shift key and make a single click on the encapsulator object.
Open the Align and Distribute dialog via Objects → Align and Distribute menu item (or press Ctrl‌‌+Shift+A).
Under Align, select Last selected in the Relative to drop down list.
Under Rearrange, click Randomize centers in both dimensions button.


Sources:


Alignment and Distribution of Objects — A Guide to Inkscape
Align and Distribute — Inkscape — FLOSS Manuals

10% popularity Vote Up Vote Down


 

@Karen819

Let's get a try...

You can create your bubble (sorry, not so pretty):



With the bubble selected, press the spray tool (see also here):



You can tweak a bit with the tool options until the object are placed according to your wishes:



Now, you can simply keep pressed your left mouse button down and place the bubbles while moving the mouse:



With a littler starting bubble and different spray settings:

10% popularity Vote Up Vote Down


Back to top | Use Dark Theme