Page 1 of 1

Masking and groups

Posted: Wed Sep 21, 2005 2:10 am
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.

Posted: Wed Sep 21, 2005 6:17 am
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.

Posted: Wed Sep 21, 2005 2:06 pm
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 ?

Posted: Sat Sep 24, 2005 10:39 am
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 ?

Posted: Sat Sep 24, 2005 12:40 pm
by jahnocli
No, you're not missing anything; see "Feture Requests" section...

Posted: Mon Sep 26, 2005 7:56 pm
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.