autorigs.modules.extremity package¶
Submodules¶
autorigs.modules.extremity.autoRigsExtremityBuilder module¶
autorigs.modules.extremity.autoRigsExtremityInterfaceBuilder module¶
-
class
autorigs.modules.extremity.autoRigsExtremityInterfaceBuilder.
AutoRigsExtremityInterfaceBuilder
¶ -
DISPLAY_DIGIT_MENU
= ['All', 'Basic', 'Detail', 'Fine', 'OFF']¶
-
DISPLAY_FULL_MENU
= ['ON', 'OFF']¶
-
INTERFACE_NAME_LABEL
= {'bonedisplay': ('bonedisplay', 'Bone Display'), 'controldisplay': ('controldisplay', 'Control Display'), 'controlsfolder': ('controloptions', 'Controls'), 'digitbonepath': ('digitbonepath', 'Digit Bone Path'), 'digitfkcontrolpath': ('digitfkcontrolpath', 'Digit FK Control Path'), 'digitikhandlepath': ('digitikhandlepath', 'Digit IK Handle Path'), 'digitkinsolverpath': ('digitkinsolverpath', 'Digit Kinematic Solver Path'), 'digittwistctrlpath': ('digitiktwisthandlepath', 'Digit IK Twist Handle Path'), 'displayfkcontrols': ('displayfkcontrols', 'Display FK Controls'), 'extremitybonepath': ('extremitybonepath', 'Extremity Bone Path'), 'extremityfkcontrolpath': ('extremityfkcontrolpath', 'Extremity FK Control Path'), 'extremityikhandlepath': ('extremityikhandlepath', 'Extremity IK Handle Path'), 'extremitykinsolverpath': ('extremitykinsolverpath', 'Extremity Kinematic Solver Path'), 'extremitytwistctrlpath': ('extremitytwistctrlpath', 'Extremity IK Twist Handle Path'), 'firstrootcontrol': ('rootcontrol', 'Root'), 'fkikblend': ('fkikblend', 'FK->IK Blend'), 'fkikthresh': ('fkikthresh', 'FK Display Threshold'), 'ikcurl': ('ikcurl', 'IK Curl'), 'ikdampen': ('ikdampen', 'Max IK Dampening'), 'ikfan': ('ikfan', 'IK Fan'), 'ikfingercurl': ('ikcurlfinger', 'IK Curl'), 'iksplay': ('iksplay', 'IK Splay'), 'kinsolverpath': ('kinsolverpath', 'Kinematic Solver Path'), 'matchfkik': ('matchfkik', 'Match FK to IK'), 'matchikfk': ('matchikfk', 'Match IK to FK'), 'optionsfolder': ('options', 'Options'), 'setdefault': ('setdefault', 'Reset To Defaults'), 'setkey': ('setkey', 'Set Key')}¶
-
LEFT_SIDE
= 0¶
-
L_INTERFACE_NAME_LABEL
= ('leftextremity', 'Left Extremity')¶
-
L_PREFIX
= 'leftextremity'¶
-
MATCH_FK_IK_POSTFIX
= 'MatchFKIK'¶
-
MATCH_IK_FK_POSTFIX
= 'MatchIKFK'¶
-
RIGHT_SIDE
= 1¶
-
R_INTERFACE_NAME_LABEL
= ('rightextremity', 'Right Extremity')¶
-
R_PREFIX
= 'rightextremity'¶
-
classmethod
buildDigitInterfaceParms
(rigcontrols, assetnode, optionsmodel, foldertemplate, prefix)¶
-
classmethod
buildFullInterfaceParms
(rigcontrols, assetnode, optionsmodel, foldertemplate, prefix, digitattached=False)¶
-
classmethod
buildRigControlsInterfaceParams
(rigcontrols, prefix, interface_control_keys, foldertemplate, digitattached=False)¶
-
classmethod
buildRigInterface
(assetnode, optionsmodel, rigcontrols, side, index, autorig_asset, parentmodule, modulename, ismain=True)¶
-
classmethod
buildRigOptionsInterfaceParms
(assetnode, options, prefix)¶
-
classmethod
createCurlSplayFanInterface
(folder, controls, assetnode, optionsmodel, prefix)¶
-
classmethod
getExtremityMatchFKtoIKStr
(assetnode, controls, prefix)¶
-
classmethod
getExtremityMatchIKtoFKStr
(assetnode, controls, prefix, rootoffset, lowerlimbend)¶
-
classmethod
linkDigitInterfaceParms
(assetnode, controls, options, prefix, isleft)¶
-
classmethod
linkFullInterfaceParms
(assetnode, controls, options, prefix, digitsattached=False)¶
-
classmethod
relativePathChParmTo
(node, relnode, parm)¶
-
autorigs.modules.extremity.buildExtremityGuide module¶
-
class
autorigs.modules.extremity.buildExtremityGuide.
ExtremityFactory
¶ Bases:
autorigs.modules.base.buildBaseGuide.BaseFactory
-
classmethod
createFromDefault
(json, assetnode, model, parent=None)¶
-
classmethod
-
class
autorigs.modules.extremity.buildExtremityGuide.
ExtremityGuide
(assetnode, model, parent=None)¶ Bases:
autorigs.modules.base.buildBaseGuide.BaseGuide
-
DISPLAY_ALL
= 0¶
-
DISPLAY_BASE
= 1¶
-
DISPLAY_DEFAULT
= 0¶
-
DISPLAY_DIGITS
= 2¶
-
SIDE_DEFAULT
= 0¶
-
SIDE_LEFT
= 0¶
-
SIDE_RIGHT
= 1¶
-
TYPE_DEFAULT
= 0¶
-
TYPE_DIGITS
= 1¶
-
TYPE_FULL
= 0¶
-
buildAdditionalGuides
(json, guidejson, assetnode)¶ This method allows for the addition of guide objects not present in an older json file to be created
-
createDigitGuideNull
(name, color, display)¶
-
createDigitGuides
(parent, guidenames, guidepositions, rootrotate, color, display=True)¶
-
createDigitGuidesFromJson
(parent, digit_json, digit_params_json, digitidx, display)¶
-
createFromJson
(json, guidejson, extremitytype)¶ Assumes the guide objects have not been created yet
-
createFullExtremity
(json, guidejson, assetnode, parent, extremitytype)¶
-
createGuideNamesFromJson
(idx, json_nameformat)¶
-
createGuidePositionsFromJson
(idx, prev_tx, json)¶
-
createMetaThumbGeo
(guidenames, metafirstpoint, bigdigitroot)¶
-
createMirrorDigitGuides
(digitguides, guidenames, parent, display)¶
-
createMirrorDigitGuidesFromJson
(digitguides, jsonobj, parent, display)¶
-
createMirrorDigitsGuidesFromJson
(digitsguides, jsonobjs, parent, display)¶
-
createMirrorFullExtremity
(json, display, parent, extremitytype)¶
-
deleteDigitGuides
(digitguides)¶
-
deleteDigitGuidesMirrorPair
(digitguides, mirrordigitguides)¶
-
deleteGuides
()¶
-
displayGuides
(display)¶
-
existingDigitsFromJson
(digits_json)¶
-
existingFromJson
(json)¶ Assumes that the guide nodes exists in the network and finds it to set this class instead of creating them This function sets the same variables as createFromJson
-
getDigitsGuidesObjectSide
(ismain, guidepart)¶
-
classmethod
getGuideJsonLabels
()¶
-
getGuideObject
(guidename)¶
-
getGuideObjectData
(guidename)¶
-
getGuideObjectDataSide
(ismain, guidepart)¶
-
getGuideObjectSide
(ismain, guidename)¶
-
getInitialPrevTx
()¶
-
getPointColorExp
(pointcolor, alldigits)¶
-
lockGuides
(lock)¶
-
makemetaGuideAdd
(node, name)¶
-
makemetaGuideBox
(node, extremityrootguide, name)¶
-
makemetaGuideCopy
(node, metaends, metapointcolor, name)¶
-
makemetaGuideEnds
(node, metabox, name)¶
-
makemetaGuideLine
(parentnode, name, negatedir=False)¶
-
makemetaGuideOut
(node, metamerge, name)¶
-
makemetaGuideResample
(node, linewristwidth, name)¶
-
makemetaGuideSwitch
(node, metaresample, metaonefing, name)¶
-
makemetaPointColor
(ismain, node, metawristpts, alldigits, name)¶
-
parentExtremities
()¶
-
setBigDigitGuides
(display)¶
-
setBigDigitParent
(bigdigitguides, ismain)¶
-
setDefaultDisplayOfAllDigitsGuides
(display)¶
-
setDefaultDisplayOfAllMirrorDigitsGuides
(display)¶
-
setDefaultDisplayOfBigDigitsGuides
(display)¶
-
setDefaultDisplayOfBigMirrorDigitsGuides
(display)¶
-
setDisplayOfBigDigitsGuides
(display=True)¶
-
setPointColor
(pointcolorsop, alldigits)¶
-
toJSON
()¶
-
toJsonGuidename
(jsonobj, ismain)¶
-
toggleDisplayAndDisplayableOfAllBaseGuides
(toggle)¶
-
toggleDisplayAndDisplayableOfGuide
(guidename, toggle)¶
-
toggleDisplayOfAllDigitsGuides
(toggle)¶
-
toggleDisplayOfAllMirrorDigitsGuides
(toggle)¶
-
toggleDisplayOfBigMirrorDigitsGuides
(toggle)¶
-
toggleDisplayOfDigitsGuides
(digitroot, digitsguides, toggle)¶
-
toggleDisplayOfGuides
(guides, toggle)¶
-
updateDisplay
(displayid)¶
-
updateHasBigDigit
(hasbigdigit)¶
-
updateMetaBigDigitGeo
()¶
-
updateMetaPointColor
()¶
-
updateMetaSide
(side)¶
-
updateMetadigit
(toggle)¶
-
updateMetaresample
(numdigits, hasbigdigit)¶
-
updateMirror
(toggle)¶
-
updateNumDigits
(numdigits)¶
-
updateSide
(side)¶
-
updateToLimbParent
(node, mirrornode)¶
-
updateToLimbParentSide
(parent, ismain, rootkey, module)¶
-
updateToMasterParent
(node, module)¶
-
updateToSpineParent
(node)¶
-
updateType
(extremitytype)¶
-
autorigs.modules.extremity.extremityGuideController module¶
-
class
autorigs.modules.extremity.extremityGuideController.
ModuleOptionController
(guidemodel)¶ -
onDigitsButtonChanged
(buttonid)¶
-
onDigitsCountChanged
(digitscount)¶
-
onDisplayChanged
(displayid)¶
-
onHasBigDigitChanged
(hasbigdigit)¶
-
onMetadigitChanged
(toggle)¶
-
onMirrorChanged
(viewmirror)¶
-
onSideChanged
(side)¶
-
onTypeChanged
(extremitytype)¶
-
autorigs.modules.extremity.extremityGuideModel module¶
-
class
autorigs.modules.extremity.extremityGuideModel.
ModuleOptionModel
¶ -
DIGITS_COUNT_MORE
= 5¶
-
DISPLAY_ALL
= 0¶
-
DISPLAY_BASE
= 1¶
-
DISPLAY_DEFAULT
= 0¶
-
DISPLAY_DIGITS
= 2¶
-
SIDE_DEFAULT
= 0¶
-
SIDE_LEFT
= 0¶
-
SIDE_RIGHT
= 1¶
-
TYPE_DEFAULT
= 0¶
-
TYPE_DIGITS
= 1¶
-
TYPE_FULL
= 0¶
-
addBigDigitChangedFcn
(bigdigitfcn)¶
-
addDigitsCountChangedFcn
(digitsfcn)¶
-
addDisplayChangedFcn
(displayfcn)¶
-
addExtremityTypeChangedFcn
(typefcn)¶
-
addMetadigitChangedFcn
(metafcn)¶
-
addMirrorChangedFcn
(mirrorfcn)¶
-
addSideChangedFcn
(sidefcn)¶
-
getNumDigits
()¶
-
getSide
()¶
-
getType
()¶
-
hasBigDigit
()¶
-
hasMetadigits
()¶
-
isMirror
()¶
-
updateDigitsCountChanged
(digitscount)¶
-
updateDisplayChanged
(displayid)¶
-
updateExtremityTypeChanged
(extremitytype)¶
-
updateHasBigDigitChanged
(hasbigdigit)¶
-
updateMetadigitChanged
(hasmeta)¶
-
updateMirrorChanged
(modelmirror)¶
-
updateSideChanged
(modelside)¶
-
autorigs.modules.extremity.extremityGuideOptions module¶
autorigs.modules.extremity.extremityGuideParams module¶
-
class
autorigs.modules.extremity.extremityGuideParams.
FootParamsWidget
(extremityguide, model)¶ Bases:
autorigs.modules.extremity.extremityGuideParams.ModuleParamsWidget
-
JSON_BIG_DIGIT
= 'bigtoe'¶
-
JSON_CENTER
= 'feetcenter'¶
-
JSON_DIGITS
= 'toes'¶
-
JSON_DIGITS_ROOT
= 'toesroot'¶
-
JSON_DIGIT_ALL
= 'toeguides'¶
-
JSON_DIGIT_FORMAT
= 'toe{}'¶
-
JSON_DIGIT_PARAMS
= 'toeparams'¶
-
JSON_DIGIT_ROLL
= 'toeroll'¶
-
JSON_EXTREMITY_ROLL
= 'footroll'¶
-
JSON_EXTREMITY_START
= 'ankle'¶
-
JSON_FULL
= 'foot'¶
-
JSON_ROOT
= 'footroot'¶
-
JSON_ROTATE_ROOT
= 'rotateroot'¶
-
LABEL_DIGIT
= 'Toes'¶
-
LABEL_DIGIT_ROOT
= 'Toes Root'¶
-
LABEL_FULL
= 'Foot'¶
-
LABEL_PARAM_BIG_DIGIT
= 'Big Toe'¶
-
LABEL_PARAM_CENTER
= 'Feet Center'¶
-
LABEL_PARAM_DIGIT_FORMAT
= 'Toe {}'¶
-
LABEL_PARAM_DIGIT_ROLL
= 'Toe Roll'¶
-
LABEL_PARAM_EXTREMITY_ROLL
= 'Foot Roll'¶
-
LABEL_PARAM_EXTREMITY_START
= 'Ankle'¶
-
LABEL_PARAM_ROOT
= 'Foot Root'¶
-
LABEL_PARAM_ROTATE_ROOT
= 'Foot Root Rot'¶
-
LABEL_PARAM_TRANSLATE_ROOT
= 'Foot Root Translate'¶
-
-
class
autorigs.modules.extremity.extremityGuideParams.
HandParamsWidget
(extremityguide, model)¶ Bases:
autorigs.modules.extremity.extremityGuideParams.ModuleParamsWidget
-
JSON_BIG_DIGIT
= 'bigfinger'¶
-
JSON_CENTER
= 'handscenter'¶
-
JSON_DIGITS
= 'fingers'¶
-
JSON_DIGITS_ROOT
= 'fingersroot'¶
-
JSON_DIGIT_ALL
= 'fingerguides'¶
-
JSON_DIGIT_FORMAT
= 'finger{}'¶
-
JSON_DIGIT_PARAMS
= 'fingerparams'¶
-
JSON_DIGIT_ROLL
= 'fingerroll'¶
-
JSON_EXTREMITY_ROLL
= 'handroll'¶
-
JSON_EXTREMITY_START
= 'wrist'¶
-
JSON_FULL
= 'hand'¶
-
JSON_ROOT
= 'handroot'¶
-
JSON_ROTATE_ROOT
= 'rotateroot'¶
-
LABEL_DIGIT
= 'Fingers'¶
-
LABEL_DIGIT_ROOT
= 'Fingers Root'¶
-
LABEL_FULL
= 'Hand'¶
-
LABEL_PARAM_BIG_DIGIT
= 'Thumb'¶
-
LABEL_PARAM_CENTER
= 'Hands Center'¶
-
LABEL_PARAM_DIGIT_FORMAT
= 'Finger {}'¶
-
LABEL_PARAM_DIGIT_ROLL
= 'Finger Roll'¶
-
LABEL_PARAM_EXTREMITY_ROLL
= 'Hand Roll'¶
-
LABEL_PARAM_EXTREMITY_START
= 'Wrist'¶
-
LABEL_PARAM_ROOT
= 'Hand Root'¶
-
LABEL_PARAM_ROTATE_ROOT
= 'Hand Root Rot'¶
-
-
class
autorigs.modules.extremity.extremityGuideParams.
ModuleParamsWidget
(extremityguide, model)¶ Bases:
sphinx.ext.autodoc.importer._MockObject
-
JSON_PARAM_BIG_DIGIT_GUIDES
= ['allguides', 'root', 'pphalanx', 'dphalanx']¶
-
JSON_PARAM_DIGITS_GUIDES
= ['allguides', 'root', 'pphalanx', 'mphalanx', 'dphalanx']¶
-
LABEL_PARAM_BIG_DIGIT_GUIDES
= ['Root Guide', 'Proximal Phalanx', 'Distal Phalanx']¶
-
LABEL_PARAM_DIGITS_GUIDES
= ['Root Guide', 'Proximal Phalanx', 'Middle Phalanx', 'Distal Phalanx']¶
-
addTab
(tablabel, tabscroll, insertidx=None)¶
-
createTab
(tabdetail, digitwidgetsdst=None)¶
-
fromJSON
(json)¶
-
getDigitGuideTabObj
(tablabel, controls, controllabels, controljsonlabels)¶
-
getExtremityType
()¶
-
getJsonDigitGuides
(i)¶
-
toJSON
()¶
-
unlinkAllNodes
()¶
-
updateHasBigDigit
(hasbigdigit)¶
-
updateNumDigit
(numdigits)¶
-
updateParmUI
()¶
-
-
class
autorigs.modules.extremity.extremityGuideParams.
QuadFootParamsWidget
(extremityguide, model)¶ Bases:
autorigs.modules.extremity.extremityGuideParams.ModuleParamsWidget
-
JSON_BIG_DIGIT
= 'bigtoe'¶
-
JSON_CENTER
= 'feetcenter'¶
-
JSON_DIGITS
= 'toes'¶
-
JSON_DIGITS_ROOT
= 'toesroot'¶
-
JSON_DIGIT_ALL
= 'toeguides'¶
-
JSON_DIGIT_FORMAT
= 'toe{}'¶
-
JSON_DIGIT_PARAMS
= 'toeparams'¶
-
JSON_DIGIT_ROLL
= 'toeroll'¶
-
JSON_EXTREMITY_ROLL
= 'footroll'¶
-
JSON_EXTREMITY_START
= 'ankle'¶
-
JSON_FULL
= 'foot'¶
-
JSON_ROOT
= 'footroot'¶
-
JSON_ROTATE_ROOT
= 'rotateroot'¶
-
LABEL_DIGIT
= 'Toes'¶
-
LABEL_DIGIT_ROOT
= 'Toes Root'¶
-
LABEL_FULL
= 'Foot'¶
-
LABEL_PARAM_BIG_DIGIT
= 'Big Toe'¶
-
LABEL_PARAM_CENTER
= 'Feet Center'¶
-
LABEL_PARAM_DIGIT_FORMAT
= 'Toe {}'¶
-
LABEL_PARAM_DIGIT_ROLL
= 'Toe Roll'¶
-
LABEL_PARAM_EXTREMITY_ROLL
= 'Foot Roll'¶
-
LABEL_PARAM_EXTREMITY_START
= 'Ankle'¶
-
LABEL_PARAM_ROOT
= 'Foot Root'¶
-
LABEL_PARAM_ROTATE_ROOT
= 'Foot Root Rot'¶
-
LABEL_PARAM_TRANSLATE_ROOT
= 'Foot Root Translate'¶
-