We closed this forum 18 June 2010. It has served us well since 2005 as the ALPHA forum did before it from 2002 to 2005. New discussions are ongoing at the new URL http://forum.processing.org. You'll need to sign up and get a new user account. We're sorry about that inconvenience, but we think it's better in the long run. The content on this forum will remain online.
Pages: 1 2 3 
Timeline (Read 20318 times)
Re: Timeline
Reply #30 - Apr 5th, 2010, 1:19am
 
Found a little issue, you can move the points before sec 0.0 (to the left). This makes it impossible to access them.

And have a question, is it possible to loop values?

Thanks for the timeline tool! I'm sure my students gonna love it.

F
Re: Timeline
Reply #31 - Apr 12th, 2010, 2:22pm
 
taboularasa:  I think that's a great idea.  I'll try to add that feature really soon to the timeline library.

fjen: thanks for the heads up on that bug.  As for looping values, that's not currently possible, though it's definitely a feature I want to support.  In fact, if I add the end-of-animation callback that taboularasa wants, we'll essentially get looping for free -- just have the callback set the time of the variable to 0.

Also, I'm glad to hear that your students will be using the timeline.  Once they've spent some time with it, I'd love to hear about their experiences with it and also any suggestions that they might have.
Re: Timeline
Reply #32 - Apr 12th, 2010, 4:13pm
 
yes, like mentioned in one of my first posts in this thread. jumping to a point  / looping would be really useful and add some nice possibilities to this tool
Re: Timeline
Reply #33 - Apr 14th, 2010, 3:39am
 
one bug i ran into: sketches should require to be saved before adding timeline data (save on timeline window) to them. otherwise you will end up getting a nullpointer exception when trying to read the data.
Re: Timeline
Reply #34 - Apr 14th, 2010, 3:58am
 
and some ideas:

add a getLength( "some_var" ) method to allow to read how many values there are for a variable.

add a getTime( "some_var" ) to allow to read current time of variable. maybe even normalized ( 0.0 - 1.0 ).

add getStartTime( "some_var" ) / getEndTime( "some_var" ) to allow to read the placement of a variable on the timeline.

add a button / shortcut to create a skeleton sketch importing the library plus variables on the timeline directly into the code.

add a debug mode to the library that will re-read the values from file each time the end of the timeline is reached (or thru a trigger). this would allow for a tighter development cycle since you could have a sketch running in the back that would update automatically once you save the timeline-data.

F
Re: Timeline
Reply #35 - May 24th, 2010, 11:25am
 
d.rifkin,

Woul it be possible to provide documentation on using the timeline *tool* as a library to embed the gui in a sketch?  I have been developing a nearly identical gui element for realtime control and it would be great if I could just use yours.  It seems like this would be possible with minimal modification -I've just had some trouble making sense of the structure of all the java files.  Please let me know what work needs to be done to use it like that, as I would be happy to contribute.  Btw, love your idea to create curves by pulling on the tangent lines.  

-zach
Pages: 1 2 3