autopattr
Description
Causes multiple objects within a patcher to be automatically included in the pattr system.
Note: you should use only one instance of an autopattr object per level in a patch.
Examples

Arguments
Attributes
autoname [int]
The word autopattr object's autoname state. The default is 0 (off). When enabled, the autopattr object will automatically name any unnamed objects in the patcher supported by the pattr system and bind to them, if possible. Naming only occurs when the patcher loads, when the autopattr object is again instantiated, or when the autopattr object receives the message . New objects placed in a patcher after the autopattr has been instantiated will not be autonamed until one of these conditions is met.
, followed by a 1 or 0, enables or disables theautorestore [int]
The word autopattr object's autorestore state. The default is 1 (on). When enabled, the autopattr object will automatically output its last-saved values when the patcher is loaded, and distribute them to bound objects. Values are saved whenever the patcher is saved.
, followed by a 1 or 0, enables or disables thedirty [int]
The word autopattr object will dirty the patch whenever its state changes.
, followed by a 1 or 0, enables or disables the patcher-dirty flag. The default is 0 (disabled). When enabled, thegreedy [int]
The word autopattr object. The default is 0 (disabled). When enabled, any internal attributes of objects attached to the left outlet of the autopattr object will be exposed to the pattr system (as well as the normal value, if present).
, followed by a 1 or 0, enables or disables the attribute-gathering feature of thename [symbol]
The word autopattr object's patcher name.
, followed by a symbol, sets theCommon Box Attributes
Messages
bang
int
Arguments
float
Arguments
list
Arguments
anything
Arguments
getattributes
Output
(internal)
Out left outlet: Any user interface object (or other object that responds to the internal messaging system utilized by autopattr) connected to the left outlet of the autopattr object will be automatically named (if necessary) and bound to. If the autopattr object's attribute has been enabled, any attributes associated with the bound object will also be exposed to the pattr system. The name is automatically generated from the object's class name (e.g. a connected number box might be named number[1].) At the time of this writing, the following Max user interface objects can be bound in this fashion: dial, function, gain~, ggate, gswitch, js, jsui (see the JavaScript in Max manual for more information on using the pattr system with JavaScript), led, matrixctrl, multislider, number box (int and float), pictctrl, pictslider, radiogroup, rslider, slider, table, textedit, toggle and umenu.
Out center-left outlet: Any user interface object (or other object that responds to the internal messaging system utilized by autopattr) connected to the center left outlet of the autopattr object will be automatically named (if necessary) and excluded from the autopattr object's bound-object list.
See Also
Name | Description |
---|---|
pattr | |
pattrforward | |
pattrhub | |
pattrmarker | |
pattrstorage | |
Max pattr Tutorial 2: Automatic Bindings and Storage | Max pattr Tutorial 2: Automatic Bindings and Storage |