Hello all’
Im trying todo something fairly simple but I cant seem to get my python straight… its been hours now and I cant find basic examples of anything similar.
all I want todo is modify this button to output a right click toggle functionality… Ive got the framework ( please tell me if its redundant ) for it, i just cant figure out the python correctly
right clicking the button should illuminate a red border on the button and then output an rtog channel.
please help, thank you!
right toggle functionality help.tox (1.98 KB)
Your if statement syntax is wrong, try this instead:
if v==0:
op('select2').par.rowindexstart = 2
else:
op('select2').par.rowindexstart = 1
Thank you!
More than anything this is a python syntax lesson for me, but I’ve also in the hunt discovered that “rstate” is usually available, just not for radio buttons, so solution waste make a 2nd button within the button of the same size but make it invisible and only use its rstate panel value.
Truth is I wish for a dumbed down hand-holdy step-by-step resource for Python user case examples in touch with basic examples and in depth explanations. The Python part of the wiki is just a little advanced to start with and basic Python lessons are too disjointed understanding how the 2 harmonize can be difficult for me. But maybe I just need to bite the bullet and go through a whole Python lessonpack from ultra beginner from somewhere.