🔥 Lifetime deal! Get Control Surface Studio for Just £67 👉 Click Here To Get It
Time left... mailtimers.com
⚠️ Lifetime licenses are ending soon, get yours before they're gone ⚠️
Your shopping cart is empty.

How to move box with reaction arguments

Submitted by Image_Engine on Mon, 08/31/2020 - 13:03
Image_Engine
Control Surface Studio User

Ive got a number of other functions going with your invaluable help John, many thanks.
Im stuck on this one.; wanting to have the box jump to end ie tracks and scenes...could you provide an example for just one please.

Topic Category: 

5 Responses

Comments

JohnC
Forum Admin
#1

This took a little bit of fiddling around but I've attached a working reaction which does it.
For background knowledge, here is the logic in the reaction:

When this happens...
button is pressed
Do this...
1. get the number of tracks in the session
2. minus width of session box from number of tracks (this gives us the offset position to move to, I store it in variable called .custom_track_offset)
3. set session box track offset to the value of variable 'custom_track_offset'.

Image_Engine
Control Surface Studio User
#2

When defining variables like this, are they global scope?

Image_Engine
Control Surface Studio User
#3

Btw thanks so much john!

JohnC
Forum Admin
#4

Yes they're global in scope. unfortunately that's the only way to define them currently in reactions.

Image_Engine
Control Surface Studio User
#5

Thats fine...no problem
The lom repository would be great with sort of info and basic examples :-)