MFnLightDataAttribute

Base Class

MFnAttribute

Constants

None.

Static Methods

None.

Static Attributes

None.

Constructors

SignatureParametersDescription
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.

Object Methods

SignatureParametersReturnsDescription
child(index) index - int MObject Returns the specified child attribute.
create(longName, shortName, direction, intensity, ambient, diffuse, specular, shadowFraction, preShadowIntensity, blindData) longName - string
shortName - string
direction - MObject
intensity - MObject
ambient - MObject
diffuse - MObject
specular - MObject
shadowFraction - MObject
preShadowIntensity - MObject
blindData - MObject
MObject Creates a new light data attribute having the child attributes provided, attaches it to the function set and returns it in an MObject.

Object Attributes

NameTypeAccessDescription
default ((dirX, dirY, dirZ), (intR, intG, intB), ambient, diffuse, specular, shadowFraction, preshadowIntensity, blindData) RW 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.

Sequence Support

None.

Number Support

None.

Comparison Support

None.

© 2011 Autodesk, Inc. All rights reserved.