“Set the value of a modifier” action generates incorrect code
Hello,
I believe there is currently a CSS bug in the code generated when selecting the “set the value of a modifier” action within a reaction.
The correct syntax should be:
self.set_modifier_value(“m1”, loop_number)
The generated syntax is:
self.set_modifier_value(self.get_modifier_value(“m1”), loop_number)
The screenshot below shows one action with the correct syntax (manually inputted), followed by a second action with the generated syntax (which causes an error).
If the developer concludes this is working as intended then feel free to ignore this, but without using the fix I described, the issue was blocking for me (log showed an error then the action block would terminate).
Note: I discovered my fix by noticing at 6min05sec in this video , the generated syntax in the video differs from the syntax generated by CSS today.
Hope this helps someone in the future.

Your code example is correct and is the same as what is usually produced when using the menu options in a Reaction. See my example below, you can see the generated output is correct.
So i’m not sure how you’ve ended up with incorrect code. Maybe you switched to custom coding, made changes and switched back?

Sign up
User registration is currently not allowed.