maya.types.light

Light node type wrapper.

Classes

Light

Wrapper for light nodes.

Module Contents

class Light(node_name)

Bases: maya.core.shapenode.ShapeNode

Wrapper for light nodes.

classmethod create(light_type='pointLight', **kwargs)

Create a light node.

Args:
light_typestr, optional

Type of light to create. Default is “pointLight”. Accepted values include “pointLight”, “directionalLight”, “spotLight”, “areaLight”, “ambientLight”, etc.

**kwargs

Additional keyword arguments passed to cmds.createNode.

Returns:
Light

Instance of the created light node.