mgear.rigbits.rbf_node¶
rbf node to normalize the calls across any number of supported rbf node types. First supported “weightDriver”/ingo clemens/Brave Rabit
-
mgear.rigbits.rbf_node.
CTL_SUFFIX
¶ str – name of the control suffixe
-
mgear.rigbits.rbf_node.
DRIVEN_SUFFIX
¶ str – suffix to be applied to driven group
-
mgear.rigbits.rbf_node.
DRIVER_CTL_ATTR_NAME
¶ str – name of the attribute to store driver control
-
mgear.rigbits.rbf_node.
DRIVER_POSEINPUT_ATTR
¶ str – name of attr to store control driver(holder)
-
mgear.rigbits.rbf_node.
DRIVER_POSES_INFO_ATTR
¶ str – name of attr to store control
-
mgear.rigbits.rbf_node.
GENERIC_SUFFIX
¶ str – generic suffix if one not provided by support module
-
mgear.rigbits.rbf_node.
RBF_SCALE_ATTR
¶ str – name of attr applied to driven control
-
mgear.rigbits.rbf_node.
RBF_SETUP_ATTR
¶ str – name of attr to store setup name for group of rbf
-
mgear.rigbits.rbf_node.
ROTATE_ATTRS
¶ list – convenience list of transform attrs
-
mgear.rigbits.rbf_node.
SCALE_ATTRS
¶ list – convenience list of transform attrs
-
mgear.rigbits.rbf_node.
SUPPORTED_RBF_NODES
¶ tuple – currently supported rbf node types
-
mgear.rigbits.rbf_node.
TRANSFORM_SUFFIX
¶ str – suffix of transform nodes for rbf nodes
-
mgear.rigbits.rbf_node.
TRANSLATE_ATTRS
¶ list – convenience list of transform attrs
Notes - refactor as more supported rbf node types are added
__author__ = “Rafael Villar” __email__ = “rav@ravrigs.com”
Functions
addDrivenGroup (node) |
add driven group, pad, above the provided node for direct connection |
compensateLocator (node) |
Create a locator that parents under desired node, to manipulated directly connected nodes. |
connectRBFToggleAttr (node, rbfNode, …) |
connect the “envelope” attr with its corresponding rbfNode |
copyInverseMirrorAttrs (srcNode, dstNode) |
within mGear the concept of inverseAttrs, so that transforms can be accurately mirrored, exists and this copys the relavent attrs from src to dest |
createDriverControlAttr (node) |
create the string attr where information will be stored for query associated driver anim control |
createDriverControlPoseAttr (node) |
ensure the driverControlPoseAttr exists on the (RBF)node provided |
createRBFToggleAttr (node) |
creates a node to toggle the rbf pose that drives the node |
decompMatrix (node, matrix) |
Decomposes a MMatrix in new api. |
deleteRBFToggleAttr (node) |
remove the toggle attribute from the node |
getConnectedRBFToggleNode (node, toggleAttr) |
get the node connected to the rbf(node) |
getDrivenMatrix (node[, absoluteWorld]) |
check if there is a control node for the provided node(driven) if so, collect the matrix information for both |
getDriverControlAttr (node) |
get the stored information from control attr |
getDriverControlPoseAttr (node) |
record the dict, stored as a str, holding driver control pose information. |
getMultipleAttrs (node, attributes) |
get multiple attrs and their values in a list, in order |
getRbfSceneSetupsInfo ([includeEmpty]) |
gather scene rbf nodes with setups in dict |
getSceneRBFNodes () |
get all rbf nodes in the scene of supported type |
getSceneSetupNodes () |
get rbf nodes with setups attributes |
getSetupName (node) |
get setup name from specified rbf node |
recallDriverControlPose (driverControl, …) |
set the driverControl to the index requested. |
removeCompensateLocator (node) |
remove the locator under the desired node if exists |
removeDrivenGroup (node) |
remove driven group above desired node |
resetDrivenNodes (node) |
use mgear convenience function to reset all available transform nodes |
setDriverControlAttr (node, controlName) |
create and set attr with the driver animControl string |
setDriverControlPoseAttr (node, poseInfo) |
set the driverControlPoseAttr with the poseInfo provided, as string |
setSetupName (node, setupName) |
set setup name on the specified node |
setToggleRBFAttr (node, value, toggleAttr) |
Toggle rbfattr on or off (any value provided) |
updateDriverControlPoseAttr (node, …) |
get the ControlPoseDict add any additionally recorded values to and set |
Classes
RBFNode (name) |
A class to normalize the function between different types of rbf nodes that essentially perform the same task. |