Purpose

Sets whether the layer is visible.

Syntax

void SetVisible(Bool visible);

Example

function Update()  { 
    layer = Document.FindLayer("My Layer");
    layer.SetVisible(True);
}