Closed rChahine closed 2 years ago
I suspect that this happens because the Blanck_part3_2 prepared before the Ta
variable is set, as explained in this section of the documentation:
If that's not it, would you remind reposting this question on the support forum? I'm closing the issue here because it's not an issue as such, but rather a question related to usage.
Hi
I'm trying to run a loop that contains a keyboard which updates a global variable named "Ta".
"Ta" has been initialized at 0 before the loop.
At the first iteration, "Ta" has no effect on the duration of Sketchpad "Blanck_part3_2", then, since the second iteration, the correct duration is set.
We know that the duration of "Blanck_part3_2" at the first iteration is the initial value despite the incrementation of "Ta"
Here's the code for handling keyboard input and update "Ta" variable:
Here the output (that works as expected)
Here's how we set duration to "Blanck_part3_2" sketchpad
python set duration "[Ta]"
Do you have any idea what's wrong ?
thanks