nuke.layers

nuke.layers(node=None) string list.

Lists the layers in a node. If no node is provided this will list all known layer names in this script.

Parameters

node – Optional node parameter.

Returns

A list of layer names.