Page 1 of 1

Trigger a switch from another switch?

Posted: Mon Oct 10, 2005 10:55 pm
by xian
I have a character with 5 head positions and hair. When he looks straight ahead and 45 degrees left & right, the hair needs to be behind the the head and the body. When looking hard left and right, the hair can be in front of the body.

Since the head is in front of the body in a switch layer, is there a way to trigger the hair switch layer with the choice of head? Or do I need to select them manually

Does that even make sense?

Posted: Tue Oct 11, 2005 12:02 am
by myles
How about including the hair with the head switch layers?
Switch sub-layers can be group layers with their own sub-layers, if you want to keep the hair on its own layer rather than on the same layer as the head, although this means losing some of the benefits of using the switch layer as a bone layer.

Otherwise, you could probably do it with an embedded script, if you're willing to delve into scripting or can convince one of the scripting guys.

Regards, Myles.

Posted: Tue Oct 11, 2005 1:56 pm
by xian
Thanks for the reply Myles.

The problem is that the head needs to be in front of the body and the hair behind. If the hair were included with the head switch layer, the long hair would appear on top of his shoulder.

Since I know nothing of scripting, much less how to embed them, I will take the manual route.

Posted: Tue Oct 11, 2005 2:12 pm
by Rai López
I'm not entirely sure if I've understood the problem... but I think that this could be a clear example to see what USEFUL it'd be my old Feature Request "Always Visible" check box to sub-switch layers... (I think) 8)

Posted: Tue Oct 11, 2005 2:28 pm
by 2ner
How about copying the hair switch layer and putting one in front and one behind the head layer. Then make the appropriate layers blank.

Posted: Tue Oct 11, 2005 7:46 pm
by mr. blaaa
jepp, as far as i can understand i would work with invisible clones until Ramòn's feature will be implanted in moho or a script to solve the workarounds will come along.

Copy the hair Layers and put them in front of the head (order of layers) and make them invisible in the timeline.
If you need the head to turn to hard right/left make them visible again.

This is just a workaround, so maybe there is a handier solution i don't know besides integrating the head into the hair layer or other way round.

Regards, hope you understand what i am typing. :wink:

Posted: Sat Oct 15, 2005 9:24 am
by 7feet
Well, hell, I'm going to have some time to diddle with a few of the scripts I was working on tommorow so maybe I'll throw another one in there. I think it would be pretty easy to amke an embedded script that would just set one switch layer in a group to use the switch data from another switch layer. I'll see what I can do.

Posted: Sat Oct 15, 2005 2:31 pm
by mr. blaaa
yeeehaw! :D

Posted: Sat Oct 15, 2005 3:30 pm
by rylleman
7feet wrote:Well, hell, I'm going to have some time to diddle with a few of the scripts I was working on tommorow so maybe I'll throw another one in there. I think it would be pretty easy to amke an embedded script that would just set one switch layer in a group to use the switch data from another switch layer. I'll see what I can do.
A script like that would help me save a LOT of time on my work. If you manage to do one 7feet you would make me very happy!

Posted: Sat Oct 15, 2005 5:57 pm
by 7feet

the boss

Posted: Wed Oct 19, 2005 2:21 am
by mr. blaaa
7feet, you are a boss player :wink: