SetVisible()
Purpose #
Sets whether the layer is visible.
This only works when your project is NOT set to use Layers as Separate Effects: Project Settings->General->Layers As Separate Effects
Syntax #
void SetVisible(Bool visible);
Parameters
visible | The visible state of the layer. |
Example #
function Update()
{
layer = Document.FindLayer("My Layer");
layer.SetVisible(true);
}