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
Forum Admin
#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'

John C
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.