A newer version of Max is available. Click here to access the latest version of the documentation

pcontrol Reference

Open and close subwindows

pcontrol

Description

Serves as a remote control for patcher/subpatcher windows and functions.

Examples

Show/hide a subpatch window, or enable/disable its MIDI objects

Arguments

None.

Attributes

Common Box Attributes

Messages

close

Arguments

patcher [list]
Closes the patcher window of any subpatches or patcher objects connected to the pcontrol object's outlet.

help

Arguments

filename [symbol]
The word help, followed by a symbol, opens a help file in Max's max-help folder with the name of the symbol followed by .help.

load

Arguments

filename [list]
The word load, followed by the name of a patcher file, opens that file if it can be found in Max's search path. The file name may optionally be followed by up to nine numbers and/or symbols, which will be substituted for the appropriate changeable # arguments (#1 to #9) in the patch being opened.

loadunique

Arguments

patcher [list]
The word loadunique, followed by the name of a patcher file, opens a single instance that file if it can be found in Max's search path. If the file has already been loaded, the previously loaded copy will be activated (i.e. only a single copy of the file may be opened). As with the load message, the file name may optionally be followed by up to nine numbers and/or symbols, which will be substituted for the appropriate changeable # arguments (#1 to #9) in the patch being opened.

open

Arguments

patcher [list]
Opens the patcher window of any subpatches or patcher objects connected to the pcontrol object's outlet.

shroud

Arguments

filename [list]
The word shroud, followed by the name of a patcher file, opens that file but does not show its window. (Use this message with care, since having patchers open but invisible can potentially lead to some disconcerting results.)

Output

Patcher-Control

Any subpatches or patcher objects connected to the pcontrol object's outlet can have their patcher window opened or closed, or MIDI enabled/disabled, when the appropriate message is received in the inlet of pcontrol.

See Also

Name Description
Sharing Max Patchers Sharing Max Patchers
Configuring Objects In A Patcher Configuring Objects In A Patcher
bpatcher
inlet
patcher
thispatcher