A few questions regarding animated buttons
Joe Hebert
Junior Member
I have an animated button with 100 states.
The Animate Time Up is 90 and the Animate Time Down is 0.
I have Auto-Repeat set to yes so that the animation loops on its own.
1) Is it possible to use a SEND_COMMAND to tell the button to pause the animation at its current state?
2) On the flip side, is it possible to use a SEND_COMMAND to tell the button to resume the animation from its current state?
I?ve tried using the ^ANI command but I haven?t figured out the correct parameters to make this happen. ^ANI is defined as follows:
3) Regarding the Auto-Repeat parameter that is set at design time: The only way I can make Auto-Repeat work is to also set Feedback for the button to Always On. Is that the way it?s supposed to work?
4) Is there a SEND_COMMAND to control the Auto-Repeat parameter?
Thanks to anyone who can answer any or all of these questions.
Cheers,
Joe
The Animate Time Up is 90 and the Animate Time Down is 0.
I have Auto-Repeat set to yes so that the animation loops on its own.
1) Is it possible to use a SEND_COMMAND to tell the button to pause the animation at its current state?
2) On the flip side, is it possible to use a SEND_COMMAND to tell the button to resume the animation from its current state?
I?ve tried using the ^ANI command but I haven?t figured out the correct parameters to make this happen. ^ANI is defined as follows:
I?ve tried plugging in 0s for start state and end state and left out the optional time parameter out to try and pause the animation. However all that did was stop the animation completely once it reached the last state. I?ve tried several other combinations with no success."'^ANI-<vt addr range>,<start state>,<end state>,<time>'"
Run button animation. Time is in 1/10 seconds and is optional. 0 for
state means current state.
3) Regarding the Auto-Repeat parameter that is set at design time: The only way I can make Auto-Repeat work is to also set Feedback for the button to Always On. Is that the way it?s supposed to work?
4) Is there a SEND_COMMAND to control the Auto-Repeat parameter?
Thanks to anyone who can answer any or all of these questions.
Cheers,
Joe
Comments
-
I think you have to abandon using it as a multi-state button and sending an animation command. Change it to a multi-state bargraph, and make a timeline for the animation, using SEND_LEVELs to animate it. Then you can inject code to stop the timeline at any point you like, or change the animation state to any point you like by using the TIMELINE_SET command. It's a bit more work setting up your timeline events, but will give you the control you need.
Categories
- All Categories
- 2.5K AMX General Discussion
- 922 AMX Technical Discussion
- 514 AMX Hardware
- 502 AMX Control Products
- 3 AMX Video Distribution Products
- 9 AMX Networked AV (SVSI) Products
- AMX Workspace & Collaboration Products
- 3.4K AMX Software
- 151 AMX Resource Management Suite Software
- 386 AMX Design Tools
- 2.4K NetLinx Studio
- 135 Duet/Cafe Duet
- 248 NetLinx Modules & Duet Modules
- 57 AMX RPM Forum
- 228 MODPEDIA - The Public Repository of Modules for Everyone
- 943 AMX Specialty Forums
- 2.6K AMXForums Archive
- 2.6K AMXForums Archive Threads
- 1.5K AMX Hardware
- 432 AMX Applications and Solutions
- 249 Residential Forum
- 182 Tips and Tricks
- 146 AMX Website/Forums