nuke.Layer

class nuke.Layer

Bases: pybind11_object

A layer is a set of channels.

Construct a layer with a name and optional list of channel names.

Methods

channels

self.channels() -> [string, ...] Get a list of the channels in this layer.

name

self.name() -> str Get the layer name.

setName

self.setName(newName) -> None Set the name of this layer.

visible

self.visible() -> bool Check whether the layer is visible.

channels() [string, ...]

Get a list of the channels in this layer.

Returns:

A list of strings, where each string is the name of a channel in this layer.

name() str

Get the layer name.

Returns:

The layer name, as a string.

setName(newName) None

Set the name of this layer.

Parameters:

newName – The new name for this layer.

visible() bool

Check whether the layer is visible.

Returns:

True if visible, False if not.