# APC-40 - Davinci Resolve Mouse Drag

**URL:** <https://forum.bome.com/t/apc-40-davinci-resolve-mouse-drag/3121>\
**Category:** Bome Products\
**Created:** [May 23, 2021, 5:45pm UTC](https://forum.bome.com/t/apc-40-davinci-resolve-mouse-drag/3121 "2021-05-23T17:45:10Z")\
**Posts on this page:** 20\
**Page:** 2

<div class="post-metadata">

**Author:** ![liquid\_rage](https://forum.bome.com/letter_avatar_proxy/v4/letter/l/f6c823/32.png) [@liquid\_rage](https://forum.bome.com/u/liquid_rage)\
**Post date:** [May 26, 2021, 7:31pm UTC](https://forum.bome.com/t/apc-40-davinci-resolve-mouse-drag/3121/22 "2021-05-26T19:31:26Z")

</div>

Yes thank you that works perfect. Once i get this all done i will up load the full project file for the community to use.

---

<div class="post-metadata">

**Author:** ![SteveC](https://forum.bome.com/user_avatar/forum.bome.com/stevec/32/8250_2.png) [@SteveC](https://forum.bome.com/u/SteveC)\
**Post date:** [May 26, 2021, 10:20pm UTC](https://forum.bome.com/t/apc-40-davinci-resolve-mouse-drag/3121/23 "2021-05-26T22:20:25Z")

</div>

Sounds good!

---

<div class="post-metadata">

**Author:** ![sempliok](https://forum.bome.com/user_avatar/forum.bome.com/sempliok/32/2290_2.png) [@sempliok](https://forum.bome.com/u/sempliok)\
**Post date:** [December 22, 2021, 10:13am UTC](https://forum.bome.com/t/apc-40-davinci-resolve-mouse-drag/3121/24 "2021-12-22T10:13:01Z")

</div>

Hi liquid\_rage,

Do you have any progress with the setup?  
I’m super interested to make my apc40 work with resolve. I’ve tried myself numerous times to program it, with no luck. The buttons are easy to setup but the rotating relative knobs are too hard for me.  
I’m willing to pay.

@SteveC I’ve read many topics here on the forum. You’re awesome!

Thanks,  
Stan

---

<div class="post-metadata">

**Author:** ![SteveC](https://forum.bome.com/user_avatar/forum.bome.com/stevec/32/8250_2.png) [@SteveC](https://forum.bome.com/u/SteveC)\
**Post date:** [December 22, 2021, 4:52pm UTC](https://forum.bome.com/t/apc-40-davinci-resolve-mouse-drag/3121/25 "2021-12-22T16:52:01Z")

</div>

@sempliok,

There are two relative knobs on the APC40-MKII. Are these the ones you are having trouble with. It should actually be easier than the absolute knobs as there is no absolute to relative conversion required. Let me know which knob. Or are you having troubles with the sequence to drag the mouse?

Steve Caldwell  
Bome Customer Care

* * *
_Also available for paid consulting services: bome@sniz.biz_

---

<div class="post-metadata">

**Author:** ![sempliok](https://forum.bome.com/user_avatar/forum.bome.com/sempliok/32/2290_2.png) [@sempliok](https://forum.bome.com/u/sempliok)\
**Post date:** [December 22, 2021, 5:39pm UTC](https://forum.bome.com/t/apc-40-davinci-resolve-mouse-drag/3121/26 "2021-12-22T17:39:15Z")

</div>

Hi SteveC,

Sorry my mistake. I meant absolute knobs not the relative ones. I’ve tried some of your setups that I found in other topics but they all wasn’t working for me for some reason. In some of them the mouse was just stuttering at a fixed position. Some of them the mouse was moving way too fast only in one direction. To be honest a lot of time has passed since I gave up trying to do it myself and now I’m just hopping that someone will make a working setup that I can easily modify for my needs. Don’t know if is possible but it will be so cool if you can implement the absolute to relative and the mouse click and drag functions directly in the bome midi translator. I believe this will open a lot of possibilities for guys like me that are away of simple coding.

Thanks again. Keep up the good work!  
Stan

---

<div class="post-metadata">

**Author:** ![liquid\_rage](https://forum.bome.com/letter_avatar_proxy/v4/letter/l/f6c823/32.png) [@liquid\_rage](https://forum.bome.com/u/liquid_rage)\
**Post date:** [December 22, 2021, 5:45pm UTC](https://forum.bome.com/t/apc-40-davinci-resolve-mouse-drag/3121/27 "2021-12-22T17:45:41Z")

</div>

Yes I have it programed and working.

Sent using Zoho Mail

---

<div class="post-metadata">

**Author:** ![SteveC](https://forum.bome.com/user_avatar/forum.bome.com/stevec/32/8250_2.png) [@SteveC](https://forum.bome.com/u/SteveC)\
**Post date:** [December 22, 2021, 6:25pm UTC](https://forum.bome.com/t/apc-40-davinci-resolve-mouse-drag/3121/28 "2021-12-22T18:25:56Z")

</div>

Thanks @liquid\_range !

Steve Caldwell  
Bome Customer Care

* * *
_Also available for paid consulting services: bome@sniz.biz_

---

<div class="post-metadata">

**Author:** ![liquid\_rage](https://forum.bome.com/letter_avatar_proxy/v4/letter/l/f6c823/32.png) [@liquid\_rage](https://forum.bome.com/u/liquid_rage)\
**Post date:** [December 22, 2021, 7:47pm UTC](https://forum.bome.com/t/apc-40-davinci-resolve-mouse-drag/3121/29 "2021-12-22T19:47:21Z")

</div>

Yes i have it all working with a HUD faders and knob controls for color.

 ![20211222_113651](https://forum.bome.com/uploads/default/original/2X/5/5952bcae8bdf4daa1fdafe301f28a27cd18a1aba.jpeg)  
 ![20211222_113718](https://forum.bome.com/uploads/default/original/2X/7/7cff5b24cbb5e24f25e0679dcdc336d61e5f7835.jpeg)

---

<div class="post-metadata">

**Author:** ![SteveC](https://forum.bome.com/user_avatar/forum.bome.com/stevec/32/8250_2.png) [@SteveC](https://forum.bome.com/u/SteveC)\
**Post date:** [December 23, 2021, 12:22am UTC](https://forum.bome.com/t/apc-40-davinci-resolve-mouse-drag/3121/30 "2021-12-23T00:22:37Z")

</div>

@liquid_rage

Ah I see that you have APC40 MKI.

@sempliok

Do you have a MKI or MKII? Their programming is quite different?

Steve Caldwell  
Bome Customer Care

* * *
_Also available for paid consulting services: bome@sniz.biz_

---

<div class="post-metadata">

**Author:** ![sempliok](https://forum.bome.com/user_avatar/forum.bome.com/sempliok/32/2290_2.png) [@sempliok](https://forum.bome.com/u/sempliok)\
**Post date:** [December 23, 2021, 8:18am UTC](https://forum.bome.com/t/apc-40-davinci-resolve-mouse-drag/3121/31 "2021-12-23T08:18:54Z")

</div>

I have MK II. I guess liquid\_rage’s setup wont work for me.

---

<div class="post-metadata">

**Author:** ![SteveC](https://forum.bome.com/user_avatar/forum.bome.com/stevec/32/8250_2.png) [@SteveC](https://forum.bome.com/u/SteveC)\
**Post date:** [December 23, 2021, 3:33pm UTC](https://forum.bome.com/t/apc-40-davinci-resolve-mouse-drag/3121/32 "2021-12-23T15:33:45Z")

</div>

I believe the mouse drag feature should work. Most of the differences between the two are the matrix button/LED values.

Steve Caldwell  
Bome Customer Care

* * *
_Also available for paid consulting services: bome@sniz.biz_

---

<div class="post-metadata">

**Author:** ![liquid\_rage](https://forum.bome.com/letter_avatar_proxy/v4/letter/l/f6c823/32.png) [@liquid\_rage](https://forum.bome.com/u/liquid_rage)\
**Post date:** [December 23, 2021, 3:38pm UTC](https://forum.bome.com/t/apc-40-davinci-resolve-mouse-drag/3121/33 "2021-12-23T15:38:45Z")

</div>

On mine the only thing I couldn’t get working were the less. I didn’t really try.

Sent using Zoho Mail

---

<div class="post-metadata">

**Author:** ![SteveC](https://forum.bome.com/user_avatar/forum.bome.com/stevec/32/8250_2.png) [@SteveC](https://forum.bome.com/u/SteveC)\
**Post date:** [December 23, 2021, 4:11pm UTC](https://forum.bome.com/t/apc-40-davinci-resolve-mouse-drag/3121/34 "2021-12-23T16:11:56Z")

</div>

> [@liquid\_rage](#):
>
> On mine the only thing I couldn’t get working were the less. I didn’t really try.

Not sure what you mean by ‘the less’.

Steve Caldwell  
Bome Customer Care

* * *
_Also available for paid consulting services: bome@sniz.biz_

---

<div class="post-metadata">

**Author:** ![liquid\_rage](https://forum.bome.com/letter_avatar_proxy/v4/letter/l/f6c823/32.png) [@liquid\_rage](https://forum.bome.com/u/liquid_rage)\
**Post date:** [December 23, 2021, 4:16pm UTC](https://forum.bome.com/t/apc-40-davinci-resolve-mouse-drag/3121/35 "2021-12-23T16:16:23Z")

</div>

Sorry LEDS phone spelled checked on me.

Sent using Zoho Mail

---

<div class="post-metadata">

**Author:** ![David.Clark](https://forum.bome.com/letter_avatar_proxy/v4/letter/d/9de0a6/32.png) [@David.Clark](https://forum.bome.com/u/David.Clark)\
**Post date:** [August 11, 2023, 3:06am UTC](https://forum.bome.com/t/apc-40-davinci-resolve-mouse-drag/3121/36 "2023-08-11T03:06:26Z")

</div>

Can you please share this file? I am trying to get the same thing to work with the Machine MK3 but am having a lot of difficulty with the color panel.

---

<div class="post-metadata">

**Author:** ![SteveC](https://forum.bome.com/user_avatar/forum.bome.com/stevec/32/8250_2.png) [@SteveC](https://forum.bome.com/u/SteveC)\
**Post date:** [August 11, 2023, 3:10am UTC](https://forum.bome.com/t/apc-40-davinci-resolve-mouse-drag/3121/37 "2023-08-11T03:10:48Z")

</div>

@David.Clark

Did you see [this project fi](https://forum.bome.com/uploads/short-url/pDkXUMOO4F0p62Vi9ibGOKoAMDN.bmtp)le in this thread?

Steve Caldwell  
Bome Customer Care

* * *
_Also available for paid consulting services: bome@sniz.biz_

---

<div class="post-metadata">

**Author:** ![David.Clark](https://forum.bome.com/letter_avatar_proxy/v4/letter/d/9de0a6/32.png) [@David.Clark](https://forum.bome.com/u/David.Clark)\
**Post date:** [August 12, 2023, 6:08am UTC](https://forum.bome.com/t/apc-40-davinci-resolve-mouse-drag/3121/38 "2023-08-12T06:08:15Z")

</div>

I did, but I don’t fully understand it. I was able to get my encoders to control the mouse, horizontally. But I couldn’t get further than that.

---

<div class="post-metadata">

**Author:** ![SteveC](https://forum.bome.com/user_avatar/forum.bome.com/stevec/32/8250_2.png) [@SteveC](https://forum.bome.com/u/SteveC)\
**Post date:** [August 12, 2023, 2:04pm UTC](https://forum.bome.com/t/apc-40-davinci-resolve-mouse-drag/3121/39 "2023-08-12T14:04:22Z")

</div>

OK, it looks like I posted the wrong project. Take a look at this one.

The Preset ‘Init’ handles initialization of global variables when either the project starts or a keystroke Cntrl-Num5 is pressed.  
The ‘Mouse Drag’ handles the mouse click and drag movement

Translator 1.0 looks at CC 47, which is the Cue Level Encoder of the APC-40 and sets the direction and distance that you moved the encoder in the global variable gb. When done, it starts a one shot timer ‘Mouse’ that starts the whole process in action.

Translator 1.1 clicks the Mouse button down at the current mouse position. It then increments the value of ga so that you don’t get multiple mouse down action. Essentially ga is a step counter to tell each translator when it is to execute. It will only executer if ga=0

Translator 1.2 will move the the mouse either left (gb\<0) or right (gb\>0). depending on the direction you moved the encoder. It will only executer if ga=1.

Translator 1.3 Sets a 1 second timer ‘Watchdog’ so that when you stop moving your encoder, we can release them mouse and set the step counter ga back to 0.

Translator 1.4 is tripped after 1 second of no activity and sets the step counter back to zero and then performs a left mouse click up.

Play close attention to the rules to see the logic in what is happening.

I set up the global variable zz so that if it is a value other than 0, Only log messages will be shown and the actual mouse will not do anything. This is handy for debug purposes to ensure the sequence is working correctly without causing and damage before you actually try it. You can set it to 1 in translator 1.0 for debugging, otherwise, set it to 0.

Here is my log window when testing and zz=1

```auto
3462559 - 1.1:2 Log Left Mouse Click Down
3462559 - 1.2:2 Log Mouse Move 10
3462590 - 1.2:2 Log Mouse Move 10
3462609 - 1.2:2 Log Mouse Move 10
3462650 - 1.2:2 Log Mouse Move 10
3463650 - 1.4:1 Log Watchdog Tripped
3463650 - 1.4:2 Log Mouse Left Click Up
3464469 - 1.1:2 Log Left Mouse Click Down
3464469 - 1.2:2 Log Mouse Move -10
3464520 - 1.2:2 Log Mouse Move -10
3464559 - 1.2:2 Log Mouse Move -10
3464600 - 1.2:2 Log Mouse Move -10
3464640 - 1.2:2 Log Mouse Move -10
3464679 - 1.2:2 Log Mouse Move -10
3465679 - 1.4:1 Log Watchdog Tripped
3465679 - 1.4:2 Log Mouse Left Click Up

```

[APC-40 Drag Mouse with Cue Level.bmtp](https://forum.bome.com/uploads/short-url/3lqAroLbDC2IpZvlI51yiKXgmQb.bmtp) (2.7 KB)

I have my aliases set up as follows:

![image](https://forum.bome.com/uploads/default/original/2X/8/8cdd213615a8189d1fc3c958d572b94f9b205863.png)

You can learn more about aliases from [this tutorial](https://youtu.be/CrE391VJL0s).

Steve Caldwell  
Bome Customer Care

* * *
_Also available for paid consulting services: bome@sniz.biz_

---

<div class="post-metadata">

**Author:** ![David.Clark](https://forum.bome.com/letter_avatar_proxy/v4/letter/d/9de0a6/32.png) [@David.Clark](https://forum.bome.com/u/David.Clark)\
**Post date:** [August 12, 2023, 5:40pm UTC](https://forum.bome.com/t/apc-40-davinci-resolve-mouse-drag/3121/40 "2023-08-12T17:40:56Z")

</div>

Thank you so much!!! I am one step closer to being able to use the Maschine MK3 with Davinci. As of now, I can use the top row to go to a location, and with your help, I’m able to click down + move the mouse horizontally to adjust parameters. I am still trying to figure out the best way to assign parameters to the MK3, but I will share what I come up with. Again, thank you so much Steve!!

---

<div class="post-metadata">

**Author:** ![David.Clark](https://forum.bome.com/letter_avatar_proxy/v4/letter/d/9de0a6/32.png) [@David.Clark](https://forum.bome.com/u/David.Clark)\
**Post date:** [August 13, 2023, 2:59am UTC](https://forum.bome.com/t/apc-40-davinci-resolve-mouse-drag/3121/41 "2023-08-13T02:59:41Z")

</div>

I tried to copy this mouse movement and create a vertical mouse movement, I changed the mouse movement from Left/Right (0) to Up/Down (gb), but when I did this, the mouse moves diagonally on the copy, but also affects the original preset, even when I changed the name of the preset and changed to another encoder, I was trying to create a vertical mouse movement to be able to scroll up/down in the different menus. Where am I going wrong?

[Previous page](https://forum.bome.com/t/apc-40-davinci-resolve-mouse-drag/3121.md?page=1)

[Next page](https://forum.bome.com/t/apc-40-davinci-resolve-mouse-drag/3121.md?page=3)
