Skip to content

Possible Error .... slider variable behavior #466

Answered by Waboodoo
forumlw06 asked this question in Q&A
Discussion options

You must be logged in to vote

I see, so you have shortcut 1 which you use to control the shutter, and you want to use shortcut2 to fetch the shutter's current state and use it as the initial value for the variable used in shortcut 1.

Why is the slider dialog popping up again?

It pops up because you use getVariable('VPOS') in your debugging on line 2 in shortcut 2. This triggers the value resolution of VPOS. If you remove that line (and the last line which references debug), it should behave as expected.
(There is currently no way to read a variable's previously stored value without also triggering the variable value resolution, i.e., the slider dialog in this case.)

If your goal is to make sure that in shortcut 1 yo…

Replies: 3 comments 5 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@Waboodoo
Comment options

Answer selected by forumlw06
Comment options

You must be logged in to vote
4 replies
@Waboodoo
Comment options

@forumlw06
Comment options

@Waboodoo
Comment options

@forumlw06
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants