console Reference

Console Output in Patcher



Mirror and filter messages to the Max window in your patcher.


Conceptually it’s helpful to remember that there is a global list of all messages to the Max window. When you click the X in the Max window it clears everything. This is also what the clear message to console does. Similarly, the write message will write all the data regardless of the filter settings.




classfilter [atom]

Setting the classfilter causes the console object to only report messages from the object class specified. For example, @classfilter print will output anything reveived by print objects, but nothing else.

patcherfilter [atom]

The patcherfilter attribute can be set to the name of any patcher to restrict output to console messages generated by that patch. You can set the patcherfilter to "thispatcher" to restrict output to messages generated by the patcher containing the console object.

showonlyerrors [int]

Restrict output of the console object to error type essages only.

textfilter [atom]

The textfilter attribute requires a single word or string of words. When set, it filters by message contents, passing messages that match the entire filter string. Filter strings can be multi-element and do not require quotations. For example, textfilter foo bar will not find things with foo OR bar, it will find things with “foo bar”. Filtering includes the name of the object reporting the message.

Common Box Attributes



Sending the clear message to any console object will clear the entire contents of the Max console window.



filepath [symbol]
Sending the message write to any console object will write the entire contents of the Max console to a text file, ignoring any filters. An optional argument allows you to specify the filepath. If no filepath is provided, a file browser window will open allowing you to specify the write location.

See Also

Name Description
Max Console Max Console
Max Console Settings Max Console Settings