This HAS to be a bug...
Posted: 16 Mar 2016 04:03
Not enough room for a descriptive subject line, sorry.
Trying to programmatically (script) "press & release" a pad that has scripts attached to it's rising and falling x values. Not working. I've isolated the behavior in the very simple attached template. I'd be grateful if someone smarter than me would have a quick look.
Description: You have a 1x3 Pad object that has scripts on the rising and falling x values which trip the WasPressed & WasReleased monitors.
The RESET button resets the monitors.
The Press button "presses" Pad1 by changing its x to '1'
The Release button 'releases" Pad1 by changing its x to '0'
The Both button simply combines the two commands above into one script.
IT DOESN'T WORK. If you comment out either of the lines it will either 'press' or 'release' Pad1 (if you already set WasPressed w/ the Press button, etc) BUT NOT BOTH.
I thought it was a timing issue, I put a "count to 1000' loop between the x=1 x=0 commands, no good. Set x=1 a thousand times before setting it back to zero, no good. What works is the Hack, which sets Pads.x[1] =0, then 'presses' the Release button by setting its x to 1.
Why doesn't the 'Both" script work?
Thanks greatly for any help.
Trying to programmatically (script) "press & release" a pad that has scripts attached to it's rising and falling x values. Not working. I've isolated the behavior in the very simple attached template. I'd be grateful if someone smarter than me would have a quick look.
Description: You have a 1x3 Pad object that has scripts on the rising and falling x values which trip the WasPressed & WasReleased monitors.
The RESET button resets the monitors.
The Press button "presses" Pad1 by changing its x to '1'
The Release button 'releases" Pad1 by changing its x to '0'
The Both button simply combines the two commands above into one script.
IT DOESN'T WORK. If you comment out either of the lines it will either 'press' or 'release' Pad1 (if you already set WasPressed w/ the Press button, etc) BUT NOT BOTH.
I thought it was a timing issue, I put a "count to 1000' loop between the x=1 x=0 commands, no good. Set x=1 a thousand times before setting it back to zero, no good. What works is the Hack, which sets Pads.x[1] =0, then 'presses' the Release button by setting its x to 1.
Why doesn't the 'Both" script work?
Thanks greatly for any help.