Class LayerComp

Version added: 10.1
This class represents the Layer Comp object from the Layers panel.

Methods of LayerComp:

Name Returns Description Ver
AddLayer AddLayer(layer) void Add a layer to the comp 10.1
AutoAddChildLayers AutoAddChildLayers(doc, parent) bool Add child layers to the comp as needed < 9.5
AutoAddsGroupLayerChildren AutoAddsGroupLayerChildren() bool Getter method for group layer children < 9.5
AutoAddsSwitchLayerChildren AutoAddsSwitchLayerChildren() bool Getter method for switch layer children < 9.5
ContainsLayer ContainsLayer(layer) bool Check if the comp contains the layer 10.1
CountLayers CountLayers() int32 Count the number of layers in the comp 10.1
Name Name() char Get the name of the comp 10.1
RemoveAllLayers RemoveAllLayers() void Remove all layers from the comp 10.1
RemoveLayer RemoveLayer(layer) void Remove a single layer from the comp 10.1
SetAutoAddsGroupLayerChildren SetAutoAddsGroupLayerChildren(autoAdd) void Setter method for group layer children < 9.5
SetAutoAddsSwitchLayerChildren SetAutoAddsSwitchLayerChildren(autoAdd) void Setter method for switch layer children < 9.5
SetName SetName(inName) void Set the name of the comp 10.1