Wing animation through slider control

Rigging, animation, import/export of characters, props and cameras comprehensive tool set for After Effects.
Forum rules
Please read these rules and advices before posting.
  • Before you ask any question about a tool, to avoid duplicates, please:
    1. Search for a solution in the available official user guide.
    2. Some video tutorials are available.
    3. Maybe you can find an answer in the frequently asked questions (FAQ).
    4. You can make a search to see if your question has already been asked.
    • Thank you for giving a detailed and precise title to your topics, to help searching in the future.
    • We're very few people to manage this forum, please be patient if we're a bit long to answer.
    • Don't hesitate to answer to other people's questions! The goal of this forum is not only to have the Rainbox team answer users' questions, but to have everyone sharing and helping each other.
    • Finally, please always be polite, and keep in mind that all we want is sharing techniques and knowledge, helping each other.
Post Reply
Fogfocus
Posts: 2
Joined: Thu Oct 03, 2019 2:49 am

Wing animation through slider control

Post by Fogfocus » Thu Oct 03, 2019 3:09 am

I have rigged a fly and I have folded wings that don’t need to move separate from the rest of the rig. I also have four keyframes of wings in another position that combine to appear to be rapidly flapping. All of these art layers use multiply and transparency so creating pre-comps ruins the desired translucence. Finally, my question, is there a way to use a two position slider control that, in one position would show the static folded wings and a second position that would show constant animation of the flapping wings?
I understand the slider control concept but don’t know how to make the flying wing position automatically animate when position 2 is chosen. I’ve experimented with countless combinations to no avail. I hit a wall. Advice is appreciated.

User avatar
Duduf
Posts: 667
Joined: Mon Jun 20, 2016 2:59 pm

Re: Wing animation through slider control

Post by Duduf » Thu Oct 03, 2019 11:01 am

Hi,

This is what I would do:

- make the animation of the wings, loop all animated properties with an expression

Code: Select all

loopOut()
or the Looper in the automations of Duik.

- add an expression control/checkbox in the effects of a controller somewhere, name it something like "Fly little fly!"

- in the opacity if the layers used for the animated wings, add this expression:

Code: Select all

thisComp.layer("Controller Layer Name").effect("Fly little fly!)(1).value * 100
As the checkbox is a 0/1 value, multiplied by 100 it activates or not the opacity.

- in the opacity of the static wings, this expression:

Code: Select all

100 - thisComp.layer("Controller Layer Name").effect("Fly little fly!)(1).value * 100

Fogfocus
Posts: 2
Joined: Thu Oct 03, 2019 2:49 am

Re: Wing animation through slider control

Post by Fogfocus » Sat Oct 05, 2019 7:09 am

Thanks Duduf. The fly flies.

Post Reply