Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
This is a scipt to animate a pair of wings on a bird or anything else that "Flaps". I wrote the script for someone who needed to animate some butterfly wings.
It uses a keyframe generated cycle for main animation which drives each set of wing joints via utility nodes. There are a total of four sets of joints per wing. If not all required then delete a set of wing joints (front joint set should not be deleted as this is the driving set). The left wing is "driven" by the keyframe cycle and utility nodes. The right wing is driven by a set of utility nodes to reverse left wing direction in all 3 axis.
The flap speed can be adjusted using the speed attribute on the roation driver. Also the wings can be set up to give a graduated rotaton to induce wing curvature as wings flap up and down. Level of offset will alter rotaion ditance of wing tips in a curve offset. Also total wing flap can also be adjusted