Happy to help as always!
Steve
Happy to help as always!
Steve
Hi Thomas, first of all, thank you very much for sharing so much of the information about that process!
I am also in a similar situation as a da Vinci Resolve user. I wish to use a very simple one knob button/dial l to control the OFX panel. I am using a 4K screen so I thought this would be quite a simple process but although the software is incredibly robust is also beyond a lot of of my knowledge and understanding. I don’t suppose you have any working code or rules that you would mind sharing to help me get started?
Hi @Matthew.Robinson and welcome to the Bome community!
The key is that you will need to know the screen location you want to handle the scroll wheel action and it must be a fixed location as Bome MIDI Translator Pro does not know where the control is on your screen.
The attached should get you close.
Translator 0.0 (Preset 0 translator 0) handles the incoming CC. In the rules, we have a few Perform Actions.
The first one specifices a click action at the desired location. In this case i’m using x=1189 and y=397. You would need to adjust this for the location on your screen that Davinci presents your control.
I use the global variable “ga” to determine if a click has occured because I want to click only once until the CC stops.
Then I start a one-shot timer that will continue to reset as long as you are moving your CC. If it stops moving within 200ms then the timer will trip and a click-up mouse action will occor and the global variable ga will be set back to zero, thereby allowing you to repeat this action action.
Finally I move the scroll wheel either positive or negative based on the incoming value of the controller. I add a 10 ms delay to give the sytem time to register the click down event.
Here the rules of translator 0.0.
// Logging only if non-zero.
zz=0
// only click once
if ga==1 then skip next rule
// This calls translator 1.1
Perform "Click Down", 1189,397
// mark busy so we don't click again until
// the watchdog timer trips
ga=1
// Set the watchdog timer
Perform "Watchdog",200
// The CC should do no scroll wheel movements
// if not clicked
if ga==0 then exit rules, skip Outgoing Action
// Determine the scroll direction depending
// on the incoming value of the CC
if qq>64 then tt=1
else tt=-1
Translator 0.1 handles the click down event
Translator 0.2 calls the watchdog timer with the apprpriate delay.
Translator 0.3 is the watchdog timer and sets the value of ga back to 0 as well as handles the mouse click up outgoing action.
I use the value of zz in translator 0.0. If it is a value other than zero, only logging occurs. This is for debug purposes.
CC-to-Click and Scroll Wheel-2025-11-24.bmtp (2.2 KB)
Steve Caldwell
Bome Customer Care
2 posts were split to a new topic: CC incoming to Mouse Click and Drag outgoing - Davinci Resolve