rfm2  22.0
A python-based rewrite of RenderMan for Maya
rfm2.maya_node.MayaPxrLight Class Reference
+ Inheritance diagram for rfm2.maya_node.MayaPxrLight:
+ Collaboration diagram for rfm2.maya_node.MayaPxrLight:

Public Member Functions

def __init__ (self)
 
def __del__ (self)
 
def postConstructor (self)
 
def getFilesToArchive (self, shortName, unresolvedName, markCouldBeImageSequence)
 
def shouldSave (self, plug)
 
def compute (self, plug, block)
 
def isBounded (self)
 
def boundingBox (self)
 
def getShapeSelectionMask (self)
 

Static Public Member Functions

def creator ()
 
def initialize ()
 
def ramp_changed_cb (msg, plg, otherPlug, data)
 

Public Attributes

 node_callbacks
 
 this_obj
 
 dep_node
 

Static Public Attributes

 typeName = None
 
 nodeId = None
 
 desc = None
 

Detailed Description

Base class for all RFM-generated lights.

Attributes:
    desc (RfmNodeDesc): The full node description.
    nodeId (MTypeId): The node's unique id.
    typeName (str): The future maya node type name.

Constructor & Destructor Documentation

◆ __init__()

def rfm2.maya_node.MayaPxrLight.__init__ (   self)
Mandatory class initialisation.

◆ __del__()

def rfm2.maya_node.MayaPxrLight.__del__ (   self)
+ Here is the call graph for this function:

Member Function Documentation

◆ boundingBox()

def rfm2.maya_node.MayaPxrLight.boundingBox (   self)
Maya API method

◆ compute()

def rfm2.maya_node.MayaPxrLight.compute (   self,
  plug,
  block 
)
We may use this later to send edits more reliably to the renderer.

◆ creator()

def rfm2.maya_node.MayaPxrLight.creator ( )
static
This will be superseded by the dynamic class.

◆ getFilesToArchive()

def rfm2.maya_node.MayaPxrLight.getFilesToArchive (   self,
  shortName,
  unresolvedName,
  markCouldBeImageSequence 
)
Maya API method
+ Here is the call graph for this function:

◆ getShapeSelectionMask()

def rfm2.maya_node.MayaPxrLight.getShapeSelectionMask (   self)
Maya API method

◆ initialize()

def rfm2.maya_node.MayaPxrLight.initialize ( )
static
This will be superseded by the dynamic class.

◆ isBounded()

def rfm2.maya_node.MayaPxrLight.isBounded (   self)
Maya API method

◆ postConstructor()

def rfm2.maya_node.MayaPxrLight.postConstructor (   self)
Maya API method
+ Here is the call graph for this function:

◆ ramp_changed_cb()

def rfm2.maya_node.MayaPxrLight.ramp_changed_cb (   msg,
  plg,
  otherPlug,
  data 
)
static
We are now using Maya's compound attributes, so we need to make sure
it is properly configured to reflect our ramp implementation
limitations, i.e. spline interpolation method is the same for all knots
and knots are sorted.
To avoid triggering infinite recursive evaluations, we rely on
MDataHandle to set plug values.
+ Here is the call graph for this function:

◆ shouldSave()

def rfm2.maya_node.MayaPxrLight.shouldSave (   self,
  plug 
)
This is called for each node plug before saving the scene file.
Make sure we always save arrays to maya scenes.

Member Data Documentation

◆ dep_node

rfm2.maya_node.MayaPxrLight.dep_node

◆ desc

rfm2.maya_node.MayaPxrLight.desc = None
static

◆ node_callbacks

rfm2.maya_node.MayaPxrLight.node_callbacks

◆ nodeId

rfm2.maya_node.MayaPxrLight.nodeId = None
static

◆ this_obj

rfm2.maya_node.MayaPxrLight.this_obj

◆ typeName

rfm2.maya_node.MayaPxrLight.typeName = None
static

The documentation for this class was generated from the following file: