Previous Document Next Document

Interaction > Creating reactions > Set Parameter reaction

Set Parameter reaction


This reaction changes the value of a parameter to a set value.

For example, use Set Parameter to let surfers change the emission rate of particles.

You can apply this reaction to several parameters at once.

Note: The difference between the Set Parameter and Toggle Parameter reactions is that Set Parameter sets the parameter to a new value, whereas Toggle Parameter lets you alternate between two values.

To create a Set Parameter reaction:
  1. Select the parameter(s). See "To select a parameter:"
  2. Choose Interaction > Reactions > Set Parameter.
  3. In the Interaction Editor, a Set Parameter reaction appears for each selected parameter.

  4. Select a Set Parameter reaction.
  5. In the Parameter Editor, enter the value to which the parameter will set when the reaction is triggered.

Set Parameter Reaction Parameters

Additive

If Additive is turned off, Value replaces the parameter value when the reaction is launched. If Additive is turned on, Value is added to the parameter's value when the reaction is launched.

Value

The parameter will be set to this value when the reaction is launched.

Example: Turning a light off
  1. Select a light's Turned On parameter and choose Interaction > Reactions > Set Parameter.
  2. Select the reaction in the Interaction Editor, and then set the Value to No in the Parameter Editor.
  3. Expand the ArrowKeySensor and link OnKeyPress: Down to the new reaction.
  4. Switch to Browse mode to test the interaction. When you press the Down arrow key, the light goes off.

See also:

Linking Sensors and Reactions

Editing Triggers

Previous Document Next Document