🔥 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.

max_min

Submitted by picky-picasso on Fri, 04/15/2022 - 21:54
picky-picasso
Pro User
Control Surface Studio User

hmmm...

Any idea what I'm doing wrong?

elif cnfg["takeover_mode"] == "Value scaling": new_val = self.value_scaling(cnfg, max_min)
UnboundLocalError
:
local variable 'max_min' referenced before assignment

Topic Category: 

3 Responses

Comments

Wim
Control Surface Studio User
#1

Hi picky-picasso,
Is it possible that the 'Takeover Mode' in the 'Control Settings' of your 'Controller Template' is set to 'Value scaling'? If it is, try 'None'

JohnC
Forum Admin
#2

What listener are you using to run this code? i.e. if you're doing it when the script initialised then it's probably being ran before cnfg["takeover_mode"] is created.

picky-picasso
Pro User
#3

Thank you both - it wasn't at initialization, but I did change the controller template to none for scaling and I seem to not be getting the error.