Control one switch layer with another?

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

Moderators: Víctor Paredes, Belgarath, slowtiger

Post Reply
User avatar
rylleman
Posts: 750
Joined: Tue Feb 15, 2005 5:22 pm
Location: sweden
Contact:

Control one switch layer with another?

Post by rylleman »

Is it possible to have one switch layer that, when changed, control changing of other switch layers?
I've got one switch layer called eyes (blinking) and another with masks for the pupils which should change simultaneously with the eye layer. When I change Eye switch from "eye01" to eye02" I want the mask layer to change from "mask01" to "mask02".
Could this be done?, with a script maybe?, or do I have to change them manually?
User avatar
Lost Marble
Site Admin
Posts: 2347
Joined: Tue Aug 03, 2004 6:02 pm
Location: Scotts Valley, California, USA
Contact:

Post by Lost Marble »

You can't have one switch layer change another one, but you could get the effect you describe by using an action. Create an action in the top-most switch layer called "blink" - in that action, switch the top layer and then switch the lower layers (and whatever else you need to do). Then, when you want your character to blink, instead of changing the switch layer, insert the blink action and it will do all the switching for you.
Post Reply