Bind the same layer to two different bones

General Moho topics.

Moderators: Víctor Paredes, Belgarath, slowtiger

Post Reply
User avatar
ok_pepo
Posts: 13
Joined: Thu Jul 14, 2022 6:10 pm

Bind the same layer to two different bones

Post by ok_pepo »

Hi! How are you? :-)
I'm a bit new on Moho and I don't know a lot of thing yet... So after read and read through all the Internet, I'm having the following question.

My work needs Sqash and Stretch on a Group layer, so, I decided to make it with a bone. The problem is that it needs two kinds of Squash and Stretch, one starting from the bottom, and one starting from the top. So, I thought on add two bones to the same layer, but then I realized that I only can Bind one bone per layer.

I'm thinking in duplicate the folder (Group Layer), make one Squash and Stretch for each folder and then change between them with a Switch Layer, but I don't know if it is a bad idea or a wrong way... Because I will finish my work with a lot of layers inside folders with more layers... And maybe it will end up being a little messy.
Also I thought adding another folder inside the group layer to generate another Bone Layer and make a different Squash and Stretch... But following this way I can't have all my bones in the same folder and I have to go to the specific layer for control it. I think I could do it with the second method, but maybe is a little disorganized...

Do you know another way or a simple way for do something like that?

Thank you!!! ^^
User avatar
MrMiracle77
Posts: 189
Joined: Mon Jun 24, 2019 2:30 am

Re: Bind the same layer to two different bones

Post by MrMiracle77 »

Victor had a thread the other day that might be applicable to your dilemma:

https://www.lostmarble.com/forum/viewtopic.php?t=35405

This uses two bones and allows the layer to tilt on two different axis. One tilt bone is parented to another. So Bone A produces effect A. Bone B produces effect B, but because Bone A is the child of B, it doesn't move when B moves.

I should ask how you're performing your squash/stretch? My favorite method is to hold shift and re-size the layer from an edge (not a corner). Holding shift causes Moho to retain the 'mass' of the layer. The center point of the squash/stretch is based on the designated center of the layer (little red +). So if you're using that method, you may want two bone layers, each with a different center point and smartbones.

Bone Layer 1 - (with high center and upper squash smart bone)
|- Bone Layer 2 - (with low center and lower squash smart bone

Since Layer 2 is only one layer below Layer 1, you can create a smart bone in layer 1 that controls the smartbone in layer 2, and have all your controls on the same layer.
- Dave

(As Your GM)
User avatar
slowtiger
Posts: 6246
Joined: Thu Feb 16, 2006 6:53 pm
Location: Berlin, Germany
Contact:

Re: Bind the same layer to two different bones

Post by slowtiger »

Stuff like this I do with the help of nested group/bone layers. Squash'n'stretch can be done without bones, I just have to place the origin correctly. So it's one origin on one layer and a different one on the other, this way they can be used separately.
AS 9.5 MacPro Quadcore 3GHz 16GB OS 10.6.8 Quicktime 7.6.6
AS 11 MacPro 12core 3GHz 32GB OS 10.11 Quicktime 10.7.3
Moho 13.5 iMac Quadcore 2,9GHz 16GB OS 10.15

Moho 14.1 Mac Mini Plus OS 13.5
User avatar
SimplSam
Posts: 1218
Joined: Thu Mar 13, 2014 5:09 pm
Location: London, UK
Contact:

Re: Bind the same layer to two different bones

Post by SimplSam »

It may depend on what's in the Group. You could use:

- Overlapping opposing Flexi-bound 'stretch' bones (single bone layer) - simply relying on Bone strengths to do the work
- Layer-bound Bone Group inside a Layer-bound Bone Group - each with its own 'stretch' bone
- Or using smartbones to manipulate a Group within a Group layer (with Origins set) - simulating Squash & Stretch
- Or using smartbones to manipulate a Mesh - simulating Squash & Stretch
...
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
ok_pepo
Posts: 13
Joined: Thu Jul 14, 2022 6:10 pm

Re: Bind the same layer to two different bones

Post by ok_pepo »

Thank you all for your answers!!
MrMiracle77 wrote: Tue Nov 15, 2022 7:19 pm Victor had a thread the other day that might be applicable to your dilemma:

https://www.lostmarble.com/forum/viewtopic.php?t=35405

This uses two bones and allows the layer to tilt on two different axis. One tilt bone is parented to another. So Bone A produces effect A. Bone B produces effect B, but because Bone A is the child of B, it doesn't move when B moves.

I should ask how you're performing your squash/stretch? My favorite method is to hold shift and re-size the layer from an edge (not a corner). Holding shift causes Moho to retain the 'mass' of the layer. The center point of the squash/stretch is based on the designated center of the layer (little red +). So if you're using that method, you may want two bone layers, each with a different center point and smartbones.

Bone Layer 1 - (with high center and upper squash smart bone)
|- Bone Layer 2 - (with low center and lower squash smart bone

Since Layer 2 is only one layer below Layer 1, you can create a smart bone in layer 1 that controls the smartbone in layer 2, and have all your controls on the same layer.
Yes, what I was thinking so far is to create two bone layers with two different bones, one starting on the top, and one starting on the bottom. With these bones I change the scale with the "Squash and Stretch scaling" checked on the Bone Constraints options and ready, I have Squash and Stretch :-D. The only problem was that I was not able to control all the bones from the same layer, and that was disturbing me ^^U. But with this method I thin I could do it very well!! Thank you!


slowtiger wrote: Tue Nov 15, 2022 7:29 pm Stuff like this I do with the help of nested group/bone layers. Squash'n'stretch can be done without bones, I just have to place the origin correctly. So it's one origin on one layer and a different one on the other, this way they can be used separately.
I also thought to do this, but I supposed that with Bones and the option on Bone Constraints checked could be more easy.


SimplSam wrote: Wed Nov 16, 2022 12:16 am It may depend on what's in the Group. You could use:

- Overlapping opposing Flexi-bound 'stretch' bones (single bone layer) - simply relying on Bone strengths to do the work
- Layer-bound Bone Group inside a Layer-bound Bone Group - each with its own 'stretch' bone
- Or using smartbones to manipulate a Group within a Group layer (with Origins set) - simulating Squash & Stretch
- Or using smartbones to manipulate a Mesh - simulating Squash & Stretch
...
The Group Layer is containing a face with eyes, mouth and some letters. It's a logo. So, I think the best way is the second option, because the bones have to move everithing inside the folder at the same time, right?


Well. I think I have now a lot of possibilities and new ways to think and do when similar situations will arise.
Thank you very much to all!! :D :D
Post Reply