i had the same problem when i was using the stopwatch with QCView. i
had this fade up/down effect i wanted to achieve using the stop
watch, but i couldn't get it to function properly. i sort of figured
out why it wasn't responding (but it was a while ago and i can't
remember), and instead i just used a couple of javascript patches and
a math patch to get the desired effect.
the desired effect being, i pass one input, and the time restarts
from 0. anyway, here's a sample file, it's a bit messy. if you do a
left click, the time restarts. you can replace the mouse event with a
published input and feed a different integer after each reset.
sorry, but that's all i can offer. hope that helps...maybe someone
else can shed some light as to why the stop watch doesn't seem to work.
I have a patch that I want to do some things based on a stopwatch
(several, actually) with the stopwatch controls exposed all the way
up so I can grab them from the QCView.
The first problem that I had was when I would disable the sub-patch
that was pulling on the stop watch, the stop watch would
effectively stop running and ignore my inputs.
The second problem that I have is that I can only seem to make the
stop watch obey its stop and reset function from the Quartz
Composer GUI. In fact, if I tie _anything_ to the stop watch start/
stop/reset controls, the stop watch ceases to respond to those
inputs. I have only been able to successfully stop and reset the
stop watch directly by accessing the information panel for the
stopwatch in composer itself.
In particular, the following code does as the comments suggest:
[m_display setValue:[NSNumber numberWithBool: YES]
forInputKey:@"start_sphere_timer"];
// starts the timer
[m_display setValue:[NSNumber numberWithBool: YES]
forInputKey:@"start_sphere_timer"];
// stops the timer
[ m_display setValue:[NSNumber numberWithBool: YES]
forInputKey:@"reset_sphere_timer"];
// if the time is running, this seems to stop it from
advancing; if the timer is not runing this seems to be a no-op
[ m_display setValue:[NSNumber numberWithBool: NO]
forInputKey:@"reset_sphere_timer"];
// if the time is running, putting this back lets it
advance from its current point; if the timer is not runing this
seems to be a no-op
In fact, from the UI in the Quartz Composer app just lowering and
rasing the Start flag will cause the stopwatch to reset from 00:00.
This is not the case when I try to use the patch programatically,
or if I have anything wired to the Start input on the Stopwatch patch.
Any suggestions, comments, clues, or pointers to same greatly
appreciated.
Walt Horat
Cisco Systems, Inc.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Quartzcomposer-dev mailing list (Quartzcomposer-
email@hidden)
Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/quartzcomposer-dev/mud%
40mudnetwork.com
This email sent to email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Quartzcomposer-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/quartzcomposer-dev/email@hidden
This email sent to email@hidden