Parameter Wiring Dialog
 
 
 
Command entry:Animation menu Wire Parameters Choose parameters to wire.
Command entry:Select an object. Right-click quad menu Transform (lower-right) quadrant Wire Parameters Choose parameters to wire.
Command entry:Select an object. Modify panel Right-click text box portion of animatable parameter spinner. Choose Show In Parameter Wire dialog.
Command entry:Select an object with a wired parameter. Modify panel Right-click text box portion of a two-way-wired parameter Edit Wire

The Parameter Wiring dialog allows you to define the relationships for Wire Parameters. In this dialog, you can create new one and two-way control relationships between object parameters, edit existing relationships, and create or edit expressions which define the parameter relationships.

Only parameters that can be animated can be wired. Sub-objects, such as vertices, must be animated before they can be wired.

Parameter wires can be used to establish connections from Manipulators and Custom Attributes to objects, materials, and modifiers.

NoteParameter Wiring is a modeless dialog, and you can have several dialogs open at the same time.

Procedures

Example: To use an expression with wire parameters:

  1. Create a box and a sphere in your scene.
  2. Right-click the box, and from the quad menu choose Transform quadrant Wire Parameters.
  3. From the pop-up menu, choose Object (Box) Length.

    A rubber-band dashed line now connects the box and the mouse cursor.

  4. Click the sphere and choose Transform Position Z Position from the pop-up menu.

    The position of the sphere and the length of the box are now wired.

  5. In the Parameter Wiring dialog, create a one-way wire by clicking the arrow pointing toward the box’s tree view.
  6. Type abs( before Z_position, followed by a closing parenthesis, ), in the expression text box for Box01, so that the entire expressions is abs(Z_Position).
  7. Click Connect.
  8. Move the sphere upward along the Z axis in the viewport.

    Notice that as the sphere moves in the viewport, the length of the box changes. Using abs() ensures that the box never has a negative length.

To control several slave parameters from one master parameter:

  1. Open the Parameter Wiring dialog.
  2. Choose the master parameter in the tree view.
  3. Choose the first slave parameter in the other tree view.
  4. Click the arrow pointing toward the slave parameter.
  5. Enter the desired relationship expression in the expression text box.
  6. Click Connect.
  7. Keeping the master parameter selected, choose another slave parameter from the tree view.
  8. Click the arrow pointing toward the slave parameter.
  9. Enter the desired relationship expression in the expression text box.
  10. Click Connect.

    You can repeat this cycle to set up as many slaves as you want. The result is a “fan” of parameter wires, so that you can control all of the slave parameters at once as you change the master parameter.

To create a chain of wired parameters:

  1. Open the Parameter Wiring dialog.
  2. Choose the first controlling parameter in one tree view.
  3. Choose the first slave parameter in the other tree view.
  4. Click the arrow pointing toward the slave parameter.
  5. Enter the desired relationship expression in the expression text box.
  6. Click Connect.
  7. Keeping the original slave parameter selected, choose the next slave parameter from the tree view.
  8. Click the arrow pointing toward the new slave parameter.
  9. Enter the desired relationship expression in the expression text box.
  10. Click Connect.

    You can repeat this cycle, continuing to alternate slaves to masters as many times as you like. The result is a “daisy chain” of parameter wires, so that as you modify the original master parameter, each slave parameter maintains a constant relationship with the next in a line of parameters.

Interface

Tree Views

The dialog presents two tree views that display the animatable parameters of all of the visible objects in the scene. The names of the currently selected objects appear at the top. The tree views display the objects in the scene and allow you to select and wire all of the animatable parameters of the objects in the scene and the scene itself.

The tree views are color-coded to show existing wiring. A parameter with a wire controller assigned to it (either as the member of a two-way pair or as the slave in a one-way wire) displays in red. When a wire-controlled parameter is selected, all of the parameters wired directly to it are displayed in green text in the other Tree View. In either case, if the parameter is inside a track that is not expanded, the enclosing track will display in red or green, so you can expand the tracks to find the wires.

NoteIf you open the Parameter Wiring dialog by wiring two parameters, the tree views initially display only the selected objects, highlighting the parameters that you chose from the pop-up menus during the wiring procedure. If you want to expand the trees, to include all other animatable parameters in the scene, click Show All Tracks.

The buttons above the tree views are:

Show All Tracks

Brings you to the top of the scene object list.

Find Next Parameter

Finds the next wired parameter in the scene, expanding the tree if necessary to show and select it. You can browse through all existing wires by clicking this button repeatedly.

NoteIf you click a wired parameter, its connections are shown in green on the other tree view. While the wired parameter is highlighted, the Show Next Wire button on the other tree cycles through the green connections only, so you can quickly find the selected wire’s connections.
Refresh Tree View Content to Selected Node

Shows only the node or nodes that are selected in the scene in the tree view. The nodes are shown as currently exanded.

Control Direction

The Parameter Wiring dialog provides three direction-control buttons between the tree views. You can choose only one of these at a time. These buttons determine the direction of control, either one-way or two-way:

  • Two-way connection [two-headed arrow]Click this to link both parameters to each other, so that changing either parameter affects the other.
  • One-way connection: right parameter controls left parameter [left arrow]The right parameter controls the left parameter.
  • One-way connection: left parameter controls right parameter [right arrow]The left parameter controls the right parameter.
NoteYou can change the direction of a wire at any time by clicking the desired direction button and then clicking Connect or Update.
Connect/Update

The Connect/Update button changes its label depending on whether clicking it would add a new wire to previously unwired parameters (Connect) or change an existing wire’s expressions or direction (Update). Changes to existing wires are only applied when you click Update.

Disconnect

The Disconnect button is enabled when you’ve selected parameters with an existing wire between them. It will remove the wire controller(s) and replace them with the Master parameter’s animation track (if two-way) or with default controllers (if one-way).

Master parameters

The Parameter Wire system provides a way for the pair of wired parameters to be animated as a single system. It does this by setting up a subcontroller on one of the parameters; any animation on this controller drives the Wire Controller pair. The animation subcontroller is always assigned to the master parameter of the wired pair. By default, this is the parameter that is clicked first in the wiring interaction. The master parameter can also be designated with the Master radio buttons beneath the tree views.

The animation subcontroller appears as a nested track inside the master parameter’s track in Track View and its values directly drive and match the master parameter values. If the subcontroller is keyframable (which is the default when a two-way wiring is first established) it can be keyframed by adjustments of either of the wired parameters. This means that if you keyframe the wired pair by adjusting the non-master parameter, the values keyframed into the animation subcontroller are derived from the master parameter transfer expression. Since the wired pair can be animated through either parameter, the choice of master parameter is essentially just a convention.

Transfer Expression boxes

Underneath the parameter trees are the transfer expression text boxes. These expressions determine how changes to each parameter affect the other and are usually inverses of one another.

For more information on expression syntax, see the topic “Script Controllers” in the MAXScript Help.

When the parameters are first wired, the default expressions are simple 1-to-1 links between the parameters. These expressions can be edited into any valid script fragment that will yield a result of the correct type for its parameter. For example, if you link a parameter such as height (which contains a float value) to a parameter such as position (which contains a point3 value), your expressions must include conversions that produce the same output value type.

For one-way wires, the Expression box for the controlling parameter is unavailable, since there is no Wire controller assigned to it.

For two-way wiring, both transfer expression text boxes will be enabled. It is possible for the user to supply transfer expressions for the two parameters that are not inverses of one another, but this is of course discouraged, since the relationship of the parameters will be different depending on which one is changed first.