maya.types.light¶
Light node type wrapper.
Classes¶
Wrapper for light nodes. |
Module Contents¶
- class Light(node_name)¶
Bases:
maya.core.shapenode.ShapeNodeWrapper 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.