[SOLVED] Defer your response, workarounds?
I’m trying to do the following;
When the selected track changes, change the colour of track 1 to yellow
Yes it’s just a test for now.
I’ve tried it several ways but I keep getting the error message
(nanoK Box) There's a problem with 'Action Block 1' in reaction 'Reaction Colour track' (from 'Song - selected track' listener) >>
>> Changes cannot be triggered by notifications. You will need to defer your response.
I’ve written the following Action block to try to work around it:
def set_song_track_color(song):
song().tracks[0].color = 1676960
self.schedule_message(1000, set_song_track_color(self.song))
But I still get the same error. Why isn’t self.schedule_message working?
Creating a reaction that sets a modifier and then a 2nd reaction that detects the changed modifier and sets the track colour results in the same error.
Hi guys,
Yes the ‘defer your response’ error is a pain, I did do some investigation on this a while back but couldn’t find a way around it.
If I remember right, I think clip actions might not get caught by this problem (i.e. when clip is triggered etc).
Sign up
User registration is currently not allowed.