Set focus on a live.numbox

Martin Beck's icon

Is there a way to set the focus on a specific live.numbox from within the patch so it mimics that it was clicked by the user?

Question relates to the following problem when overwriting an automation during recording. I have an [incdec] object connected to a live.numbox and if the focus is not on the numbox a previously recorded automation in Live will update the numbox and the value set with incdec-tickbox will only shortly take effect. The automation and the tick box value compete against each other resulting in a flipping of values. There is no such problem if the focus is initially on the numbox during recording.
So I am looking for a way to set the focus on the live.numbox when the [incdec] is clicked.

M4L_Q_numbox_automation_tickbox.amxd
amxd 3.05 KB

tyler mazaika's icon

Hi Martin,

Not to my knowledge. Standard numboxes have a 'select' message but live.numbox doesn't.

But I also don't understand the situation you're concerned about based on your description. I get the sense that you're using this special [live.numbox] behavior when focused to solve a problem that might better be solved using [change] objects or some other programatic logic between your [incdec] and your [live.numbox].

Cheers,
Tyler

Martin Beck's icon

Behaviour is a little bit weird, also found some inconsistencies to my description above meanwhile. So I guess it will be best to listen for the live.observer record_mode and live.observer session_record_status and disconnect the [incdec] appropriately.