Python API 2.0 Reference
OpenMaya.MFnLightDataAttribute Class Reference
+ Inheritance diagram for OpenMaya.MFnLightDataAttribute:

Public Member Functions

def __init__ ()
 
def child ()
 
def create ()
 
- Public Member Functions inherited from OpenMaya.MFnAttribute
def __init__ ()
 
def accepts ()
 
def acceptsAttribute ()
 
def addToCategory ()
 
def getAddAttrCmd ()
 
def hasCategory ()
 
def setNiceNameOverride ()
 
- Public Member Functions inherited from OpenMaya.MFnBase
def __init__ ()
 
def hasObj ()
 
def object ()
 
def setObject ()
 
def type ()
 

Static Public Member Functions

def __new__ ()
 
- Static Public Member Functions inherited from OpenMaya.MFnAttribute
def __new__ ()
 
- Static Public Member Functions inherited from OpenMaya.MFnBase
def __new__ ()
 

Properties

 default = property(...)
 
- Properties inherited from OpenMaya.MFnAttribute
 affectsAppearance = property(...)
 
 affectsWorldSpace = property(...)
 
 array = property(...)
 
 cached = property(...)
 
 channelBox = property(...)
 
 connectable = property(...)
 
 disconnectBehavior = property(...)
 
 dynamic = property(...)
 
 extension = property(...)
 
 hidden = property(...)
 
 indeterminant = property(...)
 
 indexMatters = property(...)
 
 internal = property(...)
 
 isProxyAttribute = property(...)
 
 keyable = property(...)
 
 name = property(...)
 
 parent = property(...)
 
 readable = property(...)
 
 renderSource = property(...)
 
 shortName = property(...)
 
 storable = property(...)
 
 usedAsColor = property(...)
 
 usedAsFilename = property(...)
 
 usesArrayDataBuilder = property(...)
 
 worldSpace = property(...)
 
 writable = property(...)
 

Additional Inherited Members

- Static Public Attributes inherited from OpenMaya.MFnAttribute
int kDelete = 0
 
int kNothing = 2
 
int kReset = 1
 

Detailed Description

Functionset for creating and working with light data attributes.

Method resolution order:
-   MFnLightDataAttribute
-   MFnAttribute
-   MFnBase
-   builtins.object

Base Class

MFnAttribute<h2>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.

 


Constructor & Destructor Documentation

def OpenMaya.MFnLightDataAttribute.__init__ ( )
Initialize self.  See help(type(self)) for accurate signature.

Member Function Documentation

def OpenMaya.MFnLightDataAttribute.__new__ ( )
static
Create and return a new object.  See help(type) for accurate 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.

Property Documentation

OpenMaya.MFnLightDataAttribute.default = property(...)
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.