Video.SetVisible

Video.SetVisible ( 

string  ObjectName,

boolean Visible = true )

Example 1

Video.SetVisible("Video3", true);

Makes the "Video3" video object visible.

Example 2

Video.SetVisible("Intro Video", false);

Hides the video object named "Intro Video."

Example 3

Video.SetVisible("Video12");

Makes the video object named "Video12" visible.

Example 4

Video.SetVisible( "Running Dude", not Video.IsVisible("Running Dude") );

Toggles the visibility of the video object named "Running Dude." In other words, if "Running Dude" is visible, hide it; and if it's not visible, show it.

Note: The not operator is used in this example to convert the result of the Video.IsVisible action to its logical opposite. If Video.IsVisible returns true, the not converts that true into a false; if Video.IsVisible returns false, the not converts that false into a true. The result is then used as the second parameter in our Video.SetVisible action. So, the Video.SetVisible action sets the visibility of "Running Dude" to true or false, based on whether "Running Dude" is currently visible or not, essentially toggling its visibility between on or off.

See also:  Related Actions