OpenMaya.MFnLightDataAttribute Class Reference

OpenMaya.MFnLightDataAttribute Class Reference

Class Description

Functionset for creating and working with light data attributes.

Method resolution order:
-   MFnLightDataAttribute
-   MFnAttribute
-   MFnBase
-   __builtin__.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.

 


+ Inheritance diagram for OpenMaya.MFnLightDataAttribute:

Public Member Functions

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

Properties

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

Additional Inherited Members

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

Constructor & Destructor Documentation

OpenMaya.MFnLightDataAttribute.__init__ ( )
x.__init__(...) initializes x; see help(type(x)) for signature

Member Function Documentation

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

The documentation for this class was generated from the following files:
  • D:/Maya-MD-Merge/input/python/2.0/OpenMaya.py
  • D:/Maya-MD-Merge/input/python/extras.dox