Edit spring operation

 
 
 

The techniques for editing spring operation are described in these topics:

Set spring attributes

You can set all spring attributes in the Spring options window before you create the spring. You can change many settings in the Attribute Editor after you create the spring.

Settings available in the Attribute Editor

To use the Attribute Editor, select the spring object that’s created when you create the springs. The following attributes are also available in the Spring options window.

Per-spring Stiffness, Per-spring Damping, Per-spring Rest Length

Lets you set stiffness, damping, and rest length for individual springs. See Edit per spring rest length, stiffness, and damping.

If you use the Attribute Editor to change the setting of Per-spring Stiffness, Per-spring Damping, and Per-spring Rest Length from off to on after you create springs, Maya uses the Stiffness, Damping, and Rest Length attribute values that apply to all springs in the spring object.

Stiffness

Sets the rigidity of the springs. If you increase the stiffness of springs too much, the springs might stretch and contract excessively (see Fix playback problems).

Note that you can adjust the bounciness of a colliding soft body by changing the stiffness.

Damping

Mutes the spring action. A high value causes spring length to change more slowly. A low value causes the length to change quickly. You can use a low Damping value and a high Stiffnessvalue to create a jiggle effect.

Rest Length

Sets the length for the springs when they are at rest. Every spring in the spring object is set to the same Rest Length value.

The springs try to reach their rest length when you play the scene. If you set it to a value smaller than the length of the spring, the spring contracts when you play the scene. If you set it to a value that is larger than the length of the spring, the spring expands.

End1 Weight

Sets the amount of the spring’s force applied to the spring’s starting point. You can enter a value between 0 and 1. A value of 0 means the point is not affected by the spring forces; a value of 1 means the point is fully affected.

End2 Weight

Sets the amount of the spring’s force applied to the spring’s ending point. You can enter a value between 0 and 1. A value of 0 means the point is not affected by the spring forces; a value of 1 means the point is fully affected.

Note

The order of particle creation establishes which spring points are the starting and ending points. Because it’s hard to know which points are the starting and ending points for a particle object with many particles, End Weights are easiest to use with springs between small numbers of particles.

Add or remove springs after creation

After you create springs on an object, you can add or remove selected springs to tune the spring effect. This is useful if you need to add a few more springs to an object between points previously without springs. You can also add two springs to the same pair of points to increase rigidity. A single stiff spring has an attractive force that differs from two springs set less stiffly.

To add more springs to an object

  1. Select the objects or components to receive the additional springs.
  2. If the associated spring object isn’t already selected, Shift-select it.
  3. In the Spring Option window, turn on Add to Existing Spring, then click the Create button.

To remove selected springs from an object

  1. Turn on Select by Component Type: Lines, preferably with all line types other than Springs turned off.
  2. In the workspace, select the springs you want to remove.
  3. Press the (Linux and Windows) or (Mac OS X) key.

To remove all springs from an object

  1. Turn on Select by Object Type mode, then select the spring object in the workspace.

    Be careful not to select the particle object or geometry with the spring object. You can alternatively select the spring object in the Outliner.

  2. Press the (Linux and Windows) or (Mac OS X) key.
    Tip

    If you’ve animated spring attributes and don’t want to lose the animation, simply remove all selected springs on the object and add new ones. The new ones receive the prior attribute values.

Edit per spring rest length, stiffness, and damping

If you turn on Per-spring Stiffness, Per-spring Damping, or Per-spring Rest Length in the spring object, you can edit stiffness, damping, and rest length for individual springs.

Note

You do not add per-spring attributes, like you add per-particle attributes to particles. Per-spring Stiffness, Per-spring Damping, or Per-spring Rest Length are built- in and those are the only ones you can edit.

To edit the per spring attributes

  1. Select the spring object.
  2. Click (the Select by Component Type icon), then limit selection to springs. See Basics for details.
  3. Select the individual springs that have the attribute values you want to change.
  4. Select Windows > General Editors > Component Editor.

    The Springs tab of the Component Editor displays rest length, stiffness and damping values for the selected springs. The attribute names end with PS, which indicates you can set the attributes on a per spring basis.

  5. Set new values for the desired springs.

    See Basics for more details on the Component Editor.