Anyone got any ideas why this doesn't work?
<oninit action="set $fadervalue & repeat_start 'myrepeatname' 250ms & os2l_cmd 1 `get_var '$fadervalue'`"/>
<slider name="Test1" x="-120" y="+0" action="set $fadervalue" rightclick="temporary" orientation="vertical">
...etc, etc...</slider>
I'm trying to get os2l data for a slider out of VDJ, but it glitches the UI drawing. I thought i could take the os2l_cmd and put it with a repeat_start statement. It works when i put a static value, but will not evaluate the variable of the slider... any help will save whats left of my hair!!!!
<oninit action="set $fadervalue & repeat_start 'myrepeatname' 250ms & os2l_cmd 1 `get_var '$fadervalue'`"/>
<slider name="Test1" x="-120" y="+0" action="set $fadervalue" rightclick="temporary" orientation="vertical">
...etc, etc...</slider>
I'm trying to get os2l data for a slider out of VDJ, but it glitches the UI drawing. I thought i could take the os2l_cmd and put it with a repeat_start statement. It works when i put a static value, but will not evaluate the variable of the slider... any help will save whats left of my hair!!!!
Inviato 11 hours ago
os2l_cmd does not currently accept script parameters.
You can probably use param_cast to feed it in though:
get_var $fadervalue & param_cast & os2l_cmd 1
You can probably use param_cast to feed it in though:
get_var $fadervalue & param_cast & os2l_cmd 1
Inviato 11 hours ago
Thank you Adion, I shall give that a try... :)
Inviato 10 hours ago
It works perfectly! Thank you for your solution. My only worry now is how this can be scaled? Is there a limit for osc_cmd id numbers? Also, there will eventually be about 100 float parameters using this pipeline. Hopefully I can work out a way of switching off the repeat once a fader stops moving, or it will get very congested...
Inviato 9 hours ago
In this specific case, it would of course be more efficient to put os2l_cmd 1 directly as the action for the slider.
Otherwise 100 repeats will probably not be a significant load, especially if 250ms is fine.
Edit: One downside of using os2l_cmd in a repeat_start is that os2l_cmd sends the command every time, even if the value didn't change.
On the other hand, if it is initiated from the slider, then it will only be sent if the slider moves.
Otherwise 100 repeats will probably not be a significant load, especially if 250ms is fine.
Edit: One downside of using os2l_cmd in a repeat_start is that os2l_cmd sends the command every time, even if the value didn't change.
On the other hand, if it is initiated from the slider, then it will only be sent if the slider moves.
Inviato 9 hours ago





