Masking and groups

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

Moderators: Víctor Paredes, Belgarath, slowtiger

Post Reply
mncp
Posts: 3
Joined: Wed Sep 21, 2005 12:49 am

Masking and groups

Post by mncp »

Hi,
I'm using an image as background, a mask (image) and a vector layer on top of that, all that placed in a group layer.
This works fine, but if I create a new sub-group with the image and the mask in it, the vector layer disappears. I tried all kind of different settings, but no luck.
The idea is to move the image and the mask together.
User avatar
Lost Marble
Site Admin
Posts: 2356
Joined: Tue Aug 03, 2004 6:02 pm
Location: Scotts Valley, California, USA
Contact:

Post by Lost Marble »

A layer that is acting as a mask can only affect other layers in the same group (or in sub-groups of its group) - it cannot affect layers higher up in the hierarchy. By placing the mask in a sub-group, it will be unable to mask the vector layer higher up, but I'm not sure why the vector layer disappeared. If you can post a link to your Moho file (including the images), I can probably be more specific.
mncp
Posts: 3
Joined: Wed Sep 21, 2005 12:49 am

Post by mncp »

Thanks,
here is the link to a simplified project (440 kb)
http://mypage.bluewin.ch/ncplus/downloa ... ngTest.zip
What I would like from here is to be able to move, size,.. the two pictures layers at the same time independently from the vector layer.

Is this possible ?
mncp
Posts: 3
Joined: Wed Sep 21, 2005 12:49 am

Post by mncp »

So I guess it's no :(

I'm new to Moho and still on the demo, and find it globally very good, except the lack of being able to work on different layers at the same time and changing parameters to multiple objects/layers.

Or am I missing something ?
User avatar
jahnocli
Posts: 3471
Joined: Fri Oct 29, 2004 2:13 pm
Location: UK

Post by jahnocli »

No, you're not missing anything; see "Feture Requests" section...
You can't have everything. Where would you put it?
User avatar
Lost Marble
Site Admin
Posts: 2356
Joined: Tue Aug 03, 2004 6:02 pm
Location: Scotts Valley, California, USA
Contact:

Post by Lost Marble »

Here's one way to move two layers together:

http://www.lostmarble.com/misc/MaskingTest.zip

I took your file and made the following changes:

1. I put everything in a bone layer instead of a group.
2. I added a single bone to this bone layer.
3. I bound the two image layers to this bone - now ehn you move the bone, both image layers will move with it.
4. In the vector layer, I selected all the points and used the Bone->Release Points menu command to un-bind the points from the bone so that the vector shape does not move with the bone.

So now the two images (the background and the mask) move together if you move the bone around. In this particular case, it may make sense to use the camera controls instead of moving the background layer around, but my changes make it possible to do what you originally asked about.
Post Reply