Skip to main content

Adding and Subtracting Via Command Line

Help! I can't subtract values with macros or syntax!

Ian Peterson avatar
Written by Ian Peterson
Updated over 3 months ago

Is your -10 intensity or your -100 CCT macro not working? This article explains why:


You've probably figured out that you can use the following syntax to add 10 points you the current level of your fixture

101 at +10

This is also great because you can keep hitting ENTER and the value will keep increasing by whatever follows the + symbol

Tip: You can use + + or - - to either add or subtract in increments of 5! The increment can be changed in Blackout's settings tab


Subtracting Values

But what about subtracting?


The correct syntax for subtracting is:

101 at + -10

This is because there are parameters like Tint that can be negative like tint. If you execute 101 at -10 you're telling the console to send whatever parameter to -10.
You need the + symbol to tell the console you intend to do arithmetic.
​
So if you wanted to write macros they would look like this:
​

+10 Intensity Macro:

[Command] at + 10

-10 Intensity Macro:

[Command] at + -10

+100 CCT Macro:

[Command] ColTemp at + 100

-100 CCT Macro:

[Command] ColTemp at + -100

[Command] stands in for your fixture selection. This allows macros to work with any fixtures you've already selected when you apply the macro.

Of course this works for Tint, Crossfade, and any other parameter you have available from the fixtures you have patched.

Did this answer your question?