Tutorial: The Light Switch πŸ’‘

Learn how to turn a light on and off using a light switch.

Light Switch Scenario

With these step-by-step instructions you'll learn how to create a scenario that allows you to turn a light on and off using the Light Switch Mechanical asset.

1. Place the assets in Space

First things first, open up your Collections, and place the Ceiling Lamp asset in your Space. Then, place a Light Switch asset, which can be found in the Mechanicals Collection.

Then, open up the Experiential assets Collections, and place a Canvas asset in the Space.

2. Open up the Canvas

Once your assets are placed in your Space, select the Experiential Canvas asset to open up your Canvas.

3. Place Nodes in the Canvas

Open up the Node Menu, and select a Reference Node and refer it to the Light Switch asset. 

Next, open up the Node Menu and add a Branch Node, which can be found in the Control Flows category. 

Connect the Light Switch Reference Node On Switch output to the Branch Node's Flow In input. The link should turn blue since it refers to the scenario's flow control. 

Also, connect the Light Switch's Off output to the Branch Node's If input. 

Next, open up the Node Menu and select a new Reference Node. This time, refer the Node to the Ceiling Lamp asset. 

Now, open up the Node Menu and place a Glow Node, which can be found in the Behaviors category.

Connect the Ceiling Lamp Asset Node to the Glow Node by linking the Asset Node's Asset output to the Glow Node's Asset input. 

Then, set the Start Intensity property to 0, and set the End Intensity property to 10. 

Next, connect the Branch Node to the Glow Node by linking the Branch's True output to the Glow's Flow In input. Once again, the link should turn blue since it represents the scenario's flow control. 

Now, open up the Node Menu once more and select another Glow Node in the Behaviors category. 

Again, connect the Ceiling Lamp Asset Node to the second Glow Node by linking the Asset Node's Asset output to the Glow Node's Asset input. 

This time, set the Start Intensity property to 10, and set the End Intensity to 0. 

Then, connect the Branch Node to the second Glow Node by linking the Branch's False output to the Glow's Flow In input. Again, the link should turn blue since it represents the scenario's flow control.  

Once all of your Nodes are connected, close the Canvas. 

4. Preview and Test

Swap into Preview Mode to test the light switch.

πŸ’‘ Does the light switch allow you to flick the ceiling lamp light on and off?

If so, way to go!! πŸ™ŒπŸ» You've created a cool little scenario! 🀩