Control a device parameter by device name, not working in CSS3?
I don’t know if this is an actual bug, but I followed to the letter the video (https://www.youtube.com/watch?v=3v6zPfnkP3M) to make sure that I was doing this correctly. I had done this with the previous CSS version 2.8 without issues but I seem to get stuck here.
“SyntaxError
:
invalid syntax. Perhaps you forgot a comma?
Traceback (most recent call last):
File “”, line 1, in
File “C:\ProgramData\Ableton\Live 12 Suite\Resources\MIDI Remote Scripts\css_test_init_.py”, line 2, in
from .css_test import css_test.
File “C:\ProgramData\Ableton\Live 12 Suite\Resources\MIDI Remote Scripts\css_test\css_test.py”, line 374″
I used Google AI studio to see if I could understand the problem and got this reply (not sure if it is helpful):
“The Mistake: The function responsible for building this “address” (c_mod) makes a mistake. Instead of creating the correct path…
Correct path: selected_track + .devices + [2] + .parameters[1]
…it incorrectly puts it together like this: Incorrect path: selected_track + 2 + .parameters[1]
It completely omits the crucial .devices part of the address. When Ableton receives this broken address, it doesn’t understand it.”
the file is a very simple one, I have attached it
In the parameter mapping, you have selected the ‘Use Modifier For Device Selection’ box and set the modifiier there.
That’s the wrong one. Unselect it and select the ‘use modifier’ box below then select the modifier as in this image:

Hi John
I think there is a bug actually. Even with the change you suggested I still get an error. I followed Gemini’s instruction and edited the generated script by hand and now the scripts appears in Ableton and is working (with one little exception).
This is Gemini advice and what I did:
The error is caused by double quotes inside a string that is already wrapped in double quotes.
In Python, if you start a string with “, you cannot use “ inside that string unless you “escape” it with a backslash (\).
The error is happening because you likely named a Reaction in Remotify/Control Surface Studio: Find “Auto Filter” number and set m1. When the script generator created the error logging message for this reaction, it didn’t handle the quotes in your name correctly.
Here is how to fix it.
The Fix
You need to add a backslash \ before the quotes surrounding “Auto Filter” in three places in your script (Lines 338, 355, and 372).
1. Line 338
Current (Wrong):
codePython
<em><code>self.log_message(<span class="hljs-string">"csslog:(test (imported 1)) There's a problem with 'Action Block 1' in reaction 'Find "</span>Auto Filte<span class="hljs-string">r" number and set m1' (from 'Song - selected track' listener) >> "</span>)</code></em>Corrected:
codePython
<em><code>self<span class="hljs-selector-class">.log_message</span>("csslog:(test (imported <span class="hljs-number">1</span>)) There<span class="hljs-string">'s a problem with '</span>Action Block <span class="hljs-number">1</span><span class="hljs-string">' in reaction '</span>Find \<span class="hljs-string">"Auto Filter\" number and set m1' (from 'Song - selected track' listener) >> "</span>)</code></em>
I manually removed the ” ” around Auto Filter.
So clearly the generated code is causing this issue. Please let me know what you think.
The exception that i mentioned earlier is that when Auto Filter is moved in the effects chain the controller is still moving the parameter of the effect position where Auto Filter was before. I suppose I need an additional listener for that. It would also be interesting to know what is the function of “used modifier for device selection” box that I ticked in error.
for info the error I got was this:
File “C:\ProgramData\Ableton\Live 12 Suite\Resources\MIDI Remote Scripts\css_test_imported_1\__init__.py”, line 2, in from .css_test_imported_1 import css_test_imported_1 File “C:\ProgramData\Ableton\Live 12 Suite\Resources\MIDI Remote Scripts\css_test_imported_1\css_test_imported_1.py”, line 338 self.log_message(“csslog:(test (imported 1)) There’s a problem with ‘Action Block 1’ in reaction ‘Find “Auto Filter” number and set m1’ (from ‘Song – selected track’ listener) >> “)
I have also uploaded the script amended as you suggested
John… I just realised that it is not a bug but it is the titles I gave to the reaction!! not the generated script. So basically we should not put “” in the reaction titles or this issue will arise!
Sign up
User registration is currently not allowed.
Thanks John. I had to reinstall windows 11 for some odd reason (not CSS related). As soon as I have reinstalled all my programs I will try it!!