Picture-based control
bang | Sends the current value of the pictctrl to the outlet. | |
int | input [int] |
Sets the value of the button or knob set by the control, and sends the current value out the outlet. In button and toggle mode, the value must be either 0 or 1. In dial mode, the range of values is determined by pictctrl object's Range attribute. |
float | input [float] |
Converted to | .
(drag) | When a image file is dragged from the Max 5 File Browser to a pictctrl object, the image will be loaded. | |
(mouse) | Clicking on the pictctrl object and dragging sends the current value out the outlet. Additional behaviors depend on how the object is configured using messagse or setting attributes using the Inspector. | |
link | filename [symbol] |
The word pictctrl object will link the object with that file. | , followed by a filename to a file which has already been loaded into the
picture | imagefile-name [list] |
The word pictctrl object. The word with no name following opens a standard file dialog for choosing an image file. | followed by the name of an image file will read that file into the
set | input [int] |
The word | , followed by a number, sets the value of the button or knob to that number, without triggering output.
read | filename [list] |
The word pictctrl object. The word with no name following opens a standard file dialog for choosing an image file. | followed by the name of an image file will read that file into the
readany | filename [list] |
The word pictctrl object and attempt to interpret it as a picture. | followed by the name of a file will read any type of file into the
Name | Type | g/s | Description |
---|---|---|---|
active | int def.:1 |
Toggles mouse control of the pictctrl object. The default is 1 (enabled). If a separate set of inactive images is present in the pictctrl object's picture file and if the inactive images attribute is set, the message will also change the appearance of the control. | |
clickedimage | int def.:0 |
Toggles the use of an alternate set of image frames in your picture file to give the dial a different appearance when the user clicks on it and drags the mouse pointer. | disables this feature.|
clickincrement | int def.:0 |
Sets the output value to increment by 1 each time the object is clicked (Click to Increment mode). Any movement of the mouse after clicking is ignored. When the uppermost value is reached, the value returns to zero with the next click. All other mouse tracking modes are disabled. | disables Click to Increment mode.|
clip | int def.:1 |
Causes pictctrl, while in dial-mode, to clip mouse-movement within the range of the dial. When followed by a 0, pictctrl will wrap around to the minimum when it surpasses the maximum value (within the range of the dial) and vice versa to the maximum when it surpasses the minimum value. | |
degrees | int def.:270 |
Specifies the degree-of-rotation pictctrl has while in dial-mode. | |
frames | int def.:10 |
Specifies the number of images (columns) in the picture file. The number of frames does not have to be the same as the range of the control; the pictctrl object will use the nearest image for any given value. | |
imagemask | int def.:0 |
When non-zero, indicates that your picture file has an image mask. The default is 0 (no image mask). This attribute is present for legacy support - it has been superseded by the use of alpha channels in images. | |
inactiveimage | int def.:0 |
When non-zero, indicates that your picture file has an additional row of images for its inactive state. The default is 0 (no inactive state). | |
mode | int def.:0 |
Selects mode of operation for the pictctrl object. 0 (the default) 1 2 |
|
multiplier | int def.:0 |
Sets a multiplier value. When pictctrl is in dial mode, the object's value is multiplied by this number before being sent out the outlet. The multiplication happens before the addition of the Offset value. The default multiplier value is 1. | |
name | symbol def.:<default> |
Designates the graphics file that the pictctrl object will use will use for the control's button or dial file. By convention, the pictslider object uses images saved in Portable Network Graphics (.png) format. If you are using Max on Windows and want to to work with images other than PNG or PICT files, we recommend that you install QuickTime and choose a complete install of all optional components. The symbol used as a filename must either be the name of a file in Max's current search path, or an absolute pathname for the file (e.g. " "). | |
offset | int def.:0 |
Sets an offset value. When pictctrl is in dial mode, the offset value is added to the object's value before being sent out the outlet. The default offset value is 0. | |
range | int def.:128 |
Sets the range of the pictctrl object when it is in dial mode. The default value is 128. | |
ratio | int def.:2 |
Specifies how many pixels the mouse pointer must move before the value of the dial changes by one increment. If the pictctrl object is using Circular Tracking, the ratio message specifies how many degrees the cursor must move, relative to the center of the object, to increase the value by one. | |
snap | int def.:0 |
Sets pictctrl to snap to the image's original size. When followed by a 0, pictctrl will not snap to the image's original size. | |
threshold | int def.:0 |
Sets the button Alpha hit threshold. | |
trackcircular | int def.:0 |
Sets the pictctrl object to respond when you click on it and drag the mouse in a circular arc relative to the control's center (Circular Tracking mode). Moving the mouse clockwise increases the control's value, and moving it counterclockwise decreases its value. Enabling circular tracking disables all other tracking modes. disables circular tracking. | |
trackhorizontal | int def.:0 |
Sets the pictctrl object to respond when you click on it and drag the mouse horizontally; moving the mouse to the right increases the object's value, and moving it to the left decreases the value. Enabling this mode of operation disables the Circular Tracking and Click to Increment modes (see the and messages). | |
tracking | int def.:0 |
Toggles live tracking. If live tracking is on, the pictctrl object will change its state if the mouse moves in and out of the rectangular border of the object with the mouse button held down. disables live tracking | |
trackvertical | int def.:0 |
Sets the pictctrl object to respond when you click on it and drag the mouse vertically; moving the mouse up increases the object's value, and moving it down decreases the value. Enabling this mode of operation disables the Circular Tracking and Click to Increment modes (see the and messages). |
Name | Description |
---|---|
dial | Output numbers by moving a dial onscreen |
kslider | Output numbers from a keyboard onscreen |
matrixctrl | Matrix switch control |
pictslider | Picture-based slider control |
rslider | Display or change a range of numbers |
slider | Output numbers by moving a slider onscreen |
tab | A user interface tab/multiple button object |
textbutton | A user interface button/toggle |
ubutton | Transparent button, sends a bang |
Max Interface Tutorial 2: Picture UI Elements | Max Interface Tutorial 2: Picture UI Elements |