problem in creating shape

Wondering how to accomplish a certain animation task? Ask here.

Moderators: Fahim, Distinct Sun, Víctor Paredes, erey, Belgarath, slowtiger

problem in creating shape

Postby wr3yth » Sun Jan 13, 2019 6:56 pm

hi Image
i want to fill to shapes with same color (because i want to add an animated gradient i can't fill them seperately)
but they defuse each other
how can i fix this??
I
User avatar
wr3yth
 
Posts: 47
Joined: Sun Dec 03, 2017 11:39 pm

Re: problem in creating shape

Postby synthsin75 » Sun Jan 13, 2019 6:59 pm

Make them several shapes and just copy the gradient animation from one to the other.
- Wes
ImageImageImage
User avatar
synthsin75
 
Posts: 6997
Joined: Mon Jan 14, 2008 11:20 pm
Location: Oklahoma

Re: problem in creating shape

Postby wr3yth » Sun Jan 13, 2019 9:22 pm

thanks
i used another trick to do it
but... there should be a way to prevent them from defusing each other
i think it's even possible to choose another color for interfering parts
i saw it somewhere but i don't remember when
I
User avatar
wr3yth
 
Posts: 47
Joined: Sun Dec 03, 2017 11:39 pm

Re: problem in creating shape

Postby synthsin75 » Sun Jan 13, 2019 9:26 pm

No way to keep the same shape from cutting into itself. Otherwise we couldn't make shapes with holes in them.

Could also weld crossings and delete the overlap.
- Wes
ImageImageImage
User avatar
synthsin75
 
Posts: 6997
Joined: Mon Jan 14, 2008 11:20 pm
Location: Oklahoma

Re: problem in creating shape

Postby Greenlaw » Sun Jan 13, 2019 9:34 pm

This happens when you create a single shape from multiple paths and it's very useful for boolean effects (like knocking out the center of the letter O.)

As mentioned by Wes, the trick to preventing the 'shape reversal' is to create multiple shapes from the paths (i.e., make each letter its own shape). Then each shape can have its own fill regardless of overlapping. Is there a reason the entire layer needs to be a single shape?
User avatar
Greenlaw
 
Posts: 4210
Joined: Mon Jun 19, 2006 5:45 pm
Location: Los Angeles

Re: problem in creating shape

Postby wr3yth » Sun Jan 13, 2019 9:46 pm

thanks
no they don't need to be in one layer
I
User avatar
wr3yth
 
Posts: 47
Joined: Sun Dec 03, 2017 11:39 pm

Re: problem in creating shape

Postby Greenlaw » Sun Jan 13, 2019 10:07 pm

I don't mean layers, I mean multiple shapes within the layer. A single shape can be made of multiple paths, and that's what causes the issue shown. If you make multiple shapes from the same paths, they won't reverse on each other...they can each have their own fill.

For example:

Image

Note that all of the above shapes exist in a single layer. The difference is that we have three shapes on the left and only one shape on the right.

Hope this helps.
User avatar
Greenlaw
 
Posts: 4210
Joined: Mon Jun 19, 2006 5:45 pm
Location: Los Angeles

Re: problem in creating shape

Postby Greenlaw » Sun Jan 13, 2019 10:29 pm

Also, there's often more than one way to draw the same shapes in Moho. Take, for example, these 'donuts' below:

Image

As in the earlier example, these shapes exist in a single layer.

The difference between the two donuts is that the one on the left is created as a single shape and uses the center path to reverse out the hole; on the right, the donut is constructed as two shapes, and each shape has its own fill so there is no overlap at all.

Each method has its own particular usefulness. In time, you'll figure out which method is more suitable for a given task.
Last edited by Greenlaw on Sun Jan 13, 2019 10:44 pm, edited 1 time in total.
User avatar
Greenlaw
 
Posts: 4210
Joined: Mon Jun 19, 2006 5:45 pm
Location: Los Angeles

Re: problem in creating shape

Postby Greenlaw » Sun Jan 13, 2019 10:41 pm

This is the same as the first illustration with one new example added:

Image

All three examples use the same three paths in a single layer. The differences: on the left are three shapes created from the three paths, middle is two shapes created from the three paths, and right is one shape created from the three paths.
User avatar
Greenlaw
 
Posts: 4210
Joined: Mon Jun 19, 2006 5:45 pm
Location: Los Angeles

Re: problem in creating shape

Postby Greenlaw » Sun Jan 13, 2019 11:02 pm

Following up on my 'donut' example, here's an example of when it makes sense to use two shapes for the donut instead of one:

Image

By splitting the donut into right and left halves (two shapes), instead of reversing the center with a single shape, I can have a third shape pass through the hole...like this arm through a hoop.

Notice again, that this is all happening in a single layer.
Last edited by Greenlaw on Mon Jan 14, 2019 7:06 am, edited 2 times in total.
User avatar
Greenlaw
 
Posts: 4210
Joined: Mon Jun 19, 2006 5:45 pm
Location: Los Angeles

Re: problem in creating shape

Postby wr3yth » Sun Jan 13, 2019 11:27 pm

thank you!
it was very helpful
I
User avatar
wr3yth
 
Posts: 47
Joined: Sun Dec 03, 2017 11:39 pm


Return to How Do I...?

Who is online

Users browsing this forum: No registered users and 1 guest