nickhardeman / ofxtweenzor Goto Github PK
View Code? Open in Web Editor NEWTweening Engine for OpenFrameworks
Tweening Engine for OpenFrameworks
...on OSX 10.10 / Xcode 6.1 (6A1052d).
OpenFrameworks examples compile, so do the examples of this Tween addon: https://github.com/arturoc/ofxTween.
Hey Nick,
I had this small issue building the addon on Windows (no issues on OSX)
There is no return value in Tweenzor::getSize();
Changing it to return __instance->_tweens.size(); fixed it.
int Tweenzor::getSize() {
__instance->_tweens.size();
}
Hi Nick !
Not really and issue at all, just asking for some problem ...
I'm facing a trouble i posted on the OF forum (http://forum.openframeworks.cc/t/combine-tweezor-with-ofparameter-in-ofxgui/18987).
What I'm trying to achieve is that an ofxGui slider is tight to ofParameter and this float is being driven by a Tweenzor.
As far as i understand what is going on this should make it ๐
.h
ofParameter_x2;
.cpp
gui.add(_x2.set( "x2", 0, 0, ofGetWidth() ));
Tweenzor::add((float *)&_x2.get(), 0, ofGetWidth(), 0, 4,EASE_IN_OUT_EXPO);
what i get is that when the Tweenzor is acting, the value is being driven by Tweenzor (as expected), but my problem is that the ofxGui slider is not updated with the values being driven by the Tweenzor ... when the Tweensor ends, then i do can play with the slider and i see the resulting linked value correctly... so something is broken while the Tweenzor is driving the value ...
Maybe i'm confused about it ...
Does my question make sense ? Is it possible to link an ofParameter to a Tweenzor and see the gui widgets updated with Tweensor values ?
I'm not sure if I'm doing something wrong, but using v2, none of my tweens are updating so it's having no affect.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.