Public Member Functions | |
__init__ () | |
child () | |
create () | |
![]() | |
__init__ () | |
accepts () | |
acceptsAttribute () | |
addToCategory () | |
getAddAttrCmd () | |
hasCategory () | |
setNiceNameOverride () | |
![]() | |
__init__ () | |
hasObj () | |
object () | |
setObject () | |
type () | |
Additional Inherited Members | |
![]() | |
int | kDelete = 0 |
int | kNothing = 2 |
int | kReset = 1 |
Functionset for creating and working with light data attributes. Method resolution order: - MFnLightDataAttribute - MFnAttribute - MFnBase - __builtin__.object
MFnAttribute<h2>Constructors
Signature | Parameters | Description |
---|---|---|
MFnLightDataAttribute() | Default constructor. Returns a new MFnLightDataAttribute function set with no Maya object attached.
| |
MFnLightDataAttribute(object) | object - MObject | Returns a new MFnLightDataAttribute function set, attached to the specified Maya object.
|
OpenMaya.MFnLightDataAttribute.__init__ | ( | ) |
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
OpenMaya.MFnLightDataAttribute.child | ( | ) |
Returns one of the attribute's children, specified by index.
Signature: | child(index) |
Parameters: | index - int |
Returns: | MObject |
Description: | Returns the specified child attribute. |
OpenMaya.MFnLightDataAttribute.create | ( | ) |
Creates a new light data attribute, attaches it to the function set and returns it as an MObject.
Signature: | create(longName, shortName, direction, intensity, ambient, diffuse, specular, shadowFraction, preShadowIntensity, blindData) |
Parameters: | longName - string shortName - string direction - MObject intensity - MObject ambient - MObject diffuse - MObject specular - MObject shadowFraction - MObject preShadowIntensity - MObject blindData - MObject |
Returns: | MObject |
Description: | Creates a new light data attribute having the child attributes provided, attaches it to the function set and returns it in an MObject. |
|
static |
Default values for the light data attribute's child attributes.
Name: | default |
Type: | ((dirX, dirY, dirZ), (intR, intG, intB), ambient, diffuse, specular, shadowFraction, preshadowIntensity, blindData) |
Access: | RW |
Description: | Tuple containing the default values for the light data attribute's child attributes: a 3-tuple for the light direction; a 3-tuple for the color intensity; separate bools for the ambient, diffuse and specular attrs; a float for the shadowFraction; a float for the preShadowIntensity; a long for the blind data. |