pymel.core.rendering.lightList — PyMEL 1.0.7 documentation

pymel.core.rendering.lightList

lightList(*args, **kwargs)

Add/Remove a relationship between an object and the current light. Soon to be replaced by the connect-attribute command. In query mode, return type is based on queried flag.

Flags:

Long Name / Short Name Argument Types Properties
add / add PyNode ../../../_images/create.gif
 
add object(s) to light list.
remove / rm PyNode ../../../_images/create.gif
 
remove object(s) to light list. Flag can have multiple arguments, passed either as a tuple or a list.

Derived from mel command maya.cmds.lightList

Example:

import pymel.core as pm

pm.lightList( add='foo' )