rfm2
22.0
A python-based rewrite of RenderMan for Maya
|
Public Member Functions | |
def | __init__ (self) |
def | createChildren (self) |
def | connectToDependNode (self, node) |
def | plugToManipConversion (self, manipIndex) |
def | manipToPlugConversion (self, plugIndex) |
Public Attributes | |
positionManip | |
directionManip | |
nodePath | |
transformPath | |
startPointIndex | |
endPointIndex | |
directionIndex | |
rotatePlug | |
centerOfIllumPlug | |
initialEndPointSet | |
rotateConvIdx | |
Static Public Attributes | |
typeName = None | |
nodeId = None | |
desc = None | |
Implement a standard Position + Aim manipulator for local lights. It consists of a freePointTriadManip and a directionManip.
def rfm2.rfm_manipulators.LocalLightManipulator.__init__ | ( | self | ) |
def rfm2.rfm_manipulators.LocalLightManipulator.connectToDependNode | ( | self, | |
node | |||
) |
Connect this manipulator to a scene node. - The position manip is directly connected to the 'translate' attribute of the node's transform. - The direction manip is indirectly connected via conversion methods because they require additional computations: - Connect to the 'rotate' plug of the node's transform. - Connect to the 'centerOfIllumination' plug of the node. Note that the 'centerOfIllumination' plug is automatically added to RenderMan light nodes in rfm2.maya_node.initStandardLightAttributes().
def rfm2.rfm_manipulators.LocalLightManipulator.createChildren | ( | self | ) |
Create children manipulators: a freePointTriadManip and a directionManip. We store the manip pointers for later retrieval.
def rfm2.rfm_manipulators.LocalLightManipulator.manipToPlugConversion | ( | self, | |
plugIndex | |||
) |
Calculates and returns the requested plug value, based upon the container's manipulator values. Again, we have 2 cases: - update the transform's 'rotate' plug based on the direction manip. - update the nodes 'centerOfIllumination' plug based on the direction manip.
def rfm2.rfm_manipulators.LocalLightManipulator.plugToManipConversion | ( | self, | |
manipIndex | |||
) |
Calculates and returns the requested manipulator value, based upon the values of plugs on the nodes being manipulated. Here we have 2 cases: - Update the start point position - Update the end point position
rfm2.rfm_manipulators.LocalLightManipulator.centerOfIllumPlug |
|
static |
rfm2.rfm_manipulators.LocalLightManipulator.directionIndex |
rfm2.rfm_manipulators.LocalLightManipulator.directionManip |
rfm2.rfm_manipulators.LocalLightManipulator.endPointIndex |
rfm2.rfm_manipulators.LocalLightManipulator.initialEndPointSet |
|
static |
rfm2.rfm_manipulators.LocalLightManipulator.nodePath |
rfm2.rfm_manipulators.LocalLightManipulator.positionManip |
rfm2.rfm_manipulators.LocalLightManipulator.rotateConvIdx |
rfm2.rfm_manipulators.LocalLightManipulator.rotatePlug |
rfm2.rfm_manipulators.LocalLightManipulator.startPointIndex |
rfm2.rfm_manipulators.LocalLightManipulator.transformPath |
|
static |