Cinder's Timeline animation engine packaged as an openFrameworks addon
Forks
Forks pushed to more recently than UIKit0/ofxCinderTimeline itself, plus any admin-confirmed fork with commits of its own — worth checking if you're hitting issues with the original.
README
ofxCinderTimeline
ofxCinderTimeline is Cinder's Timeline animation engine packaged as an openFrameworks addon. The Timeline API allows for the sophisticated animation of arbitrary properties. It supports a large library of easing functions as well as custom easing, callbacks and fire-and-forget tween management. The add source is taken directly from Cinder 0.8.4 and unmodified (newer versions require not-yet-supported-by-openFrameworks C++11 and libc++). Timeline is based on the sc-Choreograph CinderBlock by David Wicks.EXAMPLES
_Basics_ - Takepos to (0,0) in 1 second using a quadratic easing curve. 0.125 seconds before the pos animation completes, begin to take radius to 3.0 in 5 seconds using the default linear easing. ``C++ ofxCinderTimeline::Anim<ofVec2f> pos = ofVec2f(10.0f, 10.0f); ofxCinderTimeline::Anim<float> radius = 0.0f; timeline().apply(&pos, ofVec2f::zero(), 1.0f, ofxCinderTimeline::EaseInQuad()); timeline().apply(&radius, 3.0f, 5.0f).appendTo(&pos, -0.125f);
_Callbacks_ - After a 4 second delay, animate alpha from 1.0 to 0.0 in 2 seconds using the default linear easing. When complete, the callback method faded will be run.
C++ ofxCinderTimeline::Anim<float> alpha; timeline().apply(&alpha, 1.0f, 0.0f, 2.0f).delay(4.0f).finishFn(boost::bind(&ofApp::faded, this));
_Cues_ - 5 seconds from now, run the callback method cueHit.
C++ timeline().add(boost::bind(&ofApp::cueHit, this), timeline().getCurrentTime() + 5); `
For more information, see the included example _example-BasicTween_, the RFC: Timeline (+ Boost 1.48) forum thread and the Timeline documentation from the Cinder library.
NOTES
Timeline requires Boost to compile. Download the 1.48 sources unarchive and move the resulting boost_1_48_0/boost into _ofxCinderTimeline/libs_. The ofxCinderTimeline addon requires that _ofxCinderTimeline/libs_ and _ofxCinderTimeline/libs/cinder/include_ are included in the header search path.
ALERT
While Boost is required, you may not want to add it to your project as there are _8,654 header files_ - it only needs to be within the header search path! Both the projectGenerator and OFPlugin blow up trying to use ofxCinderTimeline, possibly due to the number of Boost headers. Until that is resolved, you may wish to add ofxCinderTimeline` to your project manually.
ofxAddons