Hello there!
I'm using TimelineMax to make a sequence for 3D objects using Three.js. So far so good, when working with numerical properties of objects. But I'd like to set true/false properties and use the state of the timeline.
I know I can do my own functions (onComplete, onStart,...) but that requires me to keep control of the state while the timeline is playing, which is similar to create my own timeline function. The idea is to be able to scrub the playhead.
So I used .set, both in TimelineMax or TweenMax to no luck.
For instance:
tm = new TimelineMax({align: start});
tm.add( new TweenMax(camera.position, 10, {x:100, y:100, z:100}), 1); //Works well
tm.set(target, { visible: false }, 4); //Doesn't work
tm.add( TweenMax.set(target, { visible: false, immediateRender: false, delay: 4}, 0); //Neither
tm.add( TweenMax.set(target, { visible: false, immediateRender: false}, 4); //Neither
Any ideas?
Thanks