value Reference

Share data between other value objects

value

Description

Shares data with other value objects of the same name. If you send a message (number, list, or anything else) to one value object, it is set for all value objects with the same 'name' argument. You can get the contents out of a particular value object by sending it a bang.

Examples

One value (or any type of message) is shared between all value objects that share the same name

Arguments

name [symbol]

Sets the name of the value object. Other value objects with the same name will share it's contents.

initial [anything]

Optional

Additional arguments after the naming symbol initialize the contents of value. If no additional arguments are present, value contains nothing.

Attributes

Common Box Attributes

Messages

bang

Sends out the stored message.

int

Arguments

input [int]
Performs the same function as anything.

float

Arguments

input [float]
Performs the same function as anything.

list

Arguments

input [list]
Performs the same function as anything.

anything

Arguments

input [list]
The message is stored, to be shared by all other value objects with the same name, even if they are in another patch. A message received in any other value object that has the same name will change the stored value.

(mouse)

Double-clicking on a value object opens all windows containing value objects with the same name.

symbol

Arguments

input [symbol]
Performs the same function as anything.

Output

any message

bang in the inlet causes the stored message to be sent out.

See Also

Name Description
float
int
pv
pvar
send
receive
Max Basic Tutorial 16: Remote Messaging Max Basic Tutorial 16: Remote Messaging