Solved: The fill tool does not fill, but creates a new shape ...

General Moho topics.

Moderators: Víctor Paredes, Belgarath, slowtiger

Post Reply
Plan9
Posts: 10
Joined: Fri Jul 01, 2022 9:20 am
Location: Germany, Bergisches Land.

Solved: The fill tool does not fill, but creates a new shape ...

Post by Plan9 »

The fill tool does not fill, but creates a new shape with the selected color.How can I avoid this?


Solved: It's not a bug, it's a feature.

viewtopic.php?p=220823#p220823
viewtopic.php?p=220817#p220817
Last edited by Plan9 on Mon Oct 14, 2024 9:30 am, edited 4 times in total.
User avatar
hayasidist
Posts: 3831
Joined: Wed Feb 16, 2011 8:12 pm
Location: Kent, England

Re: The fill tool does not fill, but creates a new shape ...

Post by hayasidist »

If you mean the "paint bucket" (default shortcut P), that's how it's intended to work. If you want to fill a shape: activate the "Create Shape" tool (default shortcut U); select the points you want to form the shape;, choose "Fill", "Stroke" or "Both"; click the "create shape" button.
Plan9
Posts: 10
Joined: Fri Jul 01, 2022 9:20 am
Location: Germany, Bergisches Land.

Re: The fill tool does not fill, but creates a new shape ...

Post by Plan9 »

This behavior is neither described in the manual nor in the tutorial.
I also don't know what sense it makes for the paint bucket to duplicate a shape. This also works with CTRL-C, CTRL-V.

To get the paint bucket to work as expected I have to switch off Auto Fill and Auto Stroke when creating the shape. Then the Paint Bucket fills the shape and does not duplicate it.

Why should the Paint Bucket duplicate the shape?

There is no mention of this in the tutorial.https://tutorial.lostmarble.com/app/pag ... O0OGTFEhsr

It says, Changing the Color of Your Shape, and not duplicate your shape.

Translated from German into English with https://www.deepl.com/de/translator
Plan9
Posts: 10
Joined: Fri Jul 01, 2022 9:20 am
Location: Germany, Bergisches Land.

Re: The fill tool does not fill, but creates a new shape ...

Post by Plan9 »

hayasidist wrote: Sun Oct 13, 2024 10:47 am If you mean the "paint bucket" (default shortcut P), that's how it's intended to work. If you want to fill a shape: activate the "Create Shape" tool (default shortcut U); select the points you want to form the shape;, choose "Fill", "Stroke" or "Both"; click the "create shape" button.
Select shape (default shortcut Q); and select the new color works.
User avatar
Maestral
Posts: 584
Joined: Tue Jan 27, 2009 5:44 pm
Location: Belgrade, Serbia

Re: The fill tool does not fill, but creates a new shape ...

Post by Maestral »

Shapes and their colouring are treated differently in Moho. Think of it as of tailor shop.

If you create shapes by points - you're making a fabric. The fill tool is more like dye colouring.
If you apply the Style to "fabric" - you can edit colour/s on all "fabrics" at once.

Far as I know, manual needs some other updates as well but I hope this would give you an idea on how to approach creating shapes in Moho. Bear in mind that editing shapes is meant just for frame 0, so once you enter timeline, Moho presumes you're done with "fabrics". You can enable edits on other frames, while you animate, but if you're not comfortable with edits on frame 0 - later edits might be counterproductive.

Not exactly as in other graphics editors but there is a reasoning behind it.
Plan9
Posts: 10
Joined: Fri Jul 01, 2022 9:20 am
Location: Germany, Bergisches Land.

Re: The fill tool does not fill, but creates a new shape ...

Post by Plan9 »

Thanks for the answers, but I still don't see the point.

What is the reason for the Paint Bucket duplicating the shape if it was created with Fill Stroke or Fill Shape?

I still don't see an application for this. So, why does the shape have to be duplicated by the Paint Bucket? What do you need it for?


In Moho 13.5 it works as I expect it to. The shape is not duplicated.
User avatar
SimplSam
Posts: 1218
Joined: Thu Mar 13, 2014 5:09 pm
Location: London, UK
Contact:

Re: The fill tool does not fill, but creates a new shape ...

Post by SimplSam »

You can try the Paint Bucket+ add-on script tool - which behaves more like traditional Paint Bucket Fill tools: https://mohoscripts.com/script/am_paint_bucket
Moho 14.3 » Win 11 Pro 64GB » NVIDIA GTX 1080ti 11GB
Moho 14.3 » Mac mini 2012 8GB » macOS 10.15 Catalina
Tube: SimplSam


Sam
User avatar
Greenlaw
Posts: 10384
Joined: Mon Jun 19, 2006 5:45 pm
Location: Los Angeles
Contact:

Re: The fill tool does not fill, but creates a new shape ...

Post by Greenlaw »

The native Paint Bucket first creates a bitmap 'fill' and then auto-traces the 'fill' to create a new shape. This is useful when the area to be filled isn't a single closed shape, which is common when drawing with the Freehand tool in an FBF animation. (I believe I demoed this in another thread a few months ago.)

Paint Bucket is not particularly useful for changing the color of an existing shape. It might work sometimes, but it's just as likely to auto-trace the region and create a new shape.

When changing a shape's color, use Select Shape and the Style Window. This is the correct way to do it in Moho.

BTW, creating multiple stacked shapes using the same points is a valid technique that I use occasionally. I don't use Paint Bucket this, though, because that's not a reliable way to create identical stacked shapes. Synthsin75 has an alternative Create Shape tool (Stacked Shape Tool) that does this correctly, and I recommend it if you need this capability. (The normal Create Shape will just change the color, and not create an additional shape.)

Hope this helps.

Image
Plan9
Posts: 10
Joined: Fri Jul 01, 2022 9:20 am
Location: Germany, Bergisches Land.

Re: The fill tool does not fill, but creates a new shape ...

Post by Plan9 »

Greenlaw wrote: Sun Oct 13, 2024 5:44 pm

When changing a shape's color, use Select Shape and the Style Window. This is the correct way to do it in Moho.
I've been doing it this way since Moho 14. In 13.5 it still worked with the Paint Bucket without duplicating the shape.
User avatar
Hoptoad
Posts: 716
Joined: Sun Jan 03, 2016 4:19 pm
Location: Florida

Re: The fill tool does not fill, but creates a new shape ...

Post by Hoptoad »

Plan9 wrote: Sun Oct 13, 2024 2:21 pm Thanks for the answers, but I still don't see the point.
It is useful for those occasions when "select shape" is not an option.

For example: imagine a Venn diagram created by 2 circles with black strokes, no fill colors. Now imagine you want to color the overlapping area in the middle space yellow. How do you do this? The overlapping space is not a shape, so there is no shape to select.

Also, you can't select the points and create a shape, because there are no points where the circles cross.

Time to employ the Paint Bucket!

Select the Paint Bucket tool, select a yellow color, then click in the overlapping space. Bam, it becomes a yellow shape.
User avatar
Hoptoad
Posts: 716
Joined: Sun Jan 03, 2016 4:19 pm
Location: Florida

Re: The fill tool does not fill, but creates a new shape ...

Post by Hoptoad »

Another usage:

Imagine a long, thin polygon that has been twisted until it overlaps itself. The overlapped part loses its color.

Paint Bucket can turn the no-color space into a shape, the same color as the other shape.
Plan9
Posts: 10
Joined: Fri Jul 01, 2022 9:20 am
Location: Germany, Bergisches Land.

Re: The fill tool does not fill, but creates a new shape ...

Post by Plan9 »

Hoptoad wrote: Sun Oct 13, 2024 10:58 pm Another usage:

Imagine a long, thin polygon that has been twisted until it overlaps itself. The overlapped part loses its color.

Paint Bucket can turn the no-color space into a shape, the same color as the other shape.

Ok, I see. That makes sense. Thank you.
The Paint Bucket works in the same way in Moho 13.5, except that individual, non-overlapping shapes are not duplicated.
User avatar
Maestral
Posts: 584
Joined: Tue Jan 27, 2009 5:44 pm
Location: Belgrade, Serbia

Re: Solved: The fill tool does not fill, but creates a new shape ...

Post by Maestral »

Moho 14 brought so many improvements and I believe there was a lot of work done under the Moho's hood. From what I can recall, the new graphic engine was implemented. Probably it resulted in "discontinuity" of the Fill tool's behaviour.

To be frank, I can't recall the last time I used the Fill tool in any vector app. I perceive it, above all as an inaccurate and mostly a raster image tool. Even there you can find glitches and obstacles, respective to each app.
Post Reply