![]() |
![]() |
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:
- Select the parameter(s). See "To select a parameter:"
- Choose Interaction > Reactions > Set Parameter.
In the Interaction Editor, a Set Parameter reaction appears for each selected parameter.
- Select a Set Parameter reaction.
- In the Parameter Editor, enter the value to which the parameter will set when the reaction is triggered.
Set Parameter Reaction Parameters
Example: Turning a light off
- Select a light's Turned On parameter and choose Interaction > Reactions > Set Parameter.
- Select the reaction in the Interaction Editor, and then set the Value to No in the Parameter Editor.
- Expand the ArrowKeySensor and link OnKeyPress: Down to the new reaction.
- Switch to Browse mode to test the interaction. When you press the Down arrow key, the light goes off.
![]() |
![]() |