autorigs.modules.basicFace.eye package

Submodules

autorigs.modules.basicFace.eye.autoRigsEyeBuilder module

class autorigs.modules.basicFace.eye.autoRigsEyeBuilder.AutoRigsEyeBuilder(index, modulename, moduletype, autorigs_asset, buildguide, model, parentinfo, prefix='', parent=None, geo_builder=None)

Bases: autorigs.modules.base.autoRigsBaseBuilder.AutoRigsBaseBuilder

CONTROL_MODE_MENU = ['Simple', 'Detail']
EYELID_CENTER = 'eyelid_center'
EYELID_INNER = 'eyelid_inner'
EYELID_OUTER = 'eyelid_outer'
INTERFACE = {'controlmode': ('controlmode', 'Control Mode', ['Simple', 'Detail']), 'convergence': ('convergence', 'Convergence'), 'eyeball_influence': ('eyeball_influence', 'Eyeball Influence'), 'eyeopen': ('open', 'Open'), 'folder': ('folder', 'Eye'), 'lookat_t': ('lookat_t', 'Lookat Translate'), 'master_lookat_blend': ('master_lookatblend', 'Follow Head'), 'masterlookat_r': ('masterlookat_r', 'Eyes Lookat Rotate'), 'masterlookat_t': ('masterlookat_t', 'Eyes Lookat Translate'), 'masteropen': ('masteropen', 'Eyes Open')}
LOWERLID = 'bot'
NODES = {'capture_guide': ('capture_region_sphere',), 'eyegeo': ('eye_geo',), 'eyelookat': ('eye_lookat_ctrl',), 'eyelookatnull': ('eye_lookat_null',), 'eyelookup': ('eye_lookup',), 'eyenull': ('eye_null',), 'eyeroot': ('eye_root',), 'eyesroot': ('eyes_root',), 'lidroot': ('lid_root',), 'masterlookat': ('master_lookat',), 'masterlookat_target': ('master_lookat_target',), 'orbitbone': ('orbit_bone',), 'orbitroot': ('orbit_root',)}
UPPERLID = 'top'
buildEyeRig(ismain)

Builds one side of the eye rig side: The side of the eye to build ismain: Whether the eye to build is the main side

buildRigControls()

Creates the bones and controls based on the guide objects. prefix: the prefix to use for all the nodes created assetnode: the autorig assset node in which to create the rig model: the module’s model for build options buildguide: the module’s buildguides parent: a function takes a node as the argument and parent the node

captureGeometry()

Captures the geometry

createCaptureRegionSphere(grp, capture_guide, eyelid_guide)

Recreates the eye capture sphere based on the capture guide

createEyeGeo(grp, geo_path, grp_path, mirror=False)

Creates a node reference to the eye geometry

createEyeOpenCloseParm(key, grp)
createEyelidBones(eyelid_position, eyeroot_guide, parent, ismain)

Creates the upperlid and lowerlid bones for the given eyelid_guide eyelid_position: the position of the eyelidbones (ex.CENTER, INNER, OUTER) eyeroot_guide: the guide for the eyeroot

createFolderTemplate()

Creates the folder parm template for the module. model: the module’s model for build options

createGroups()
createLookAtCHOP(node, lookat, lookup, blendvalue=1, blendnode=None, blendparm=None)
createLookAtTParm(parm_id, name)
createOrbitParentConstraint(lid_root, orbit_root)
getSideGroup(ismain)
getSidePrefix(side)
linkEyeInterface(ismain)

Link the parm interface of individual eye elements

linkRigInterfaceParms()
overrideCaptureRegion(capture_guide, eyelid_guide, grp)
postCaptureEyeSetup(ismain)
setupEyelidDriver(position, grp, ismain)

Set up expression for driving the open-close of eyelids

autorigs.modules.basicFace.eye.buildEyeGuide module

class autorigs.modules.basicFace.eye.buildEyeGuide.EyeGuide(assetnode)

Bases: autorigs.modules.base.buildBaseGuide.BaseGuide

CAPTURE_GUIDE = 'capture_guide'
CLOSED_GUIDE = 'closed_guide'
DEFAULT_CENTER_RANGE = (-60, 60)
DEFAULT_INNER_RANGE = (-60, 0)
DEFAULT_OUTER_RANGE = (0, 60)
EYELID_CAPTURELINE = 'eyelid_captureline'
EYELID_CAPTURE_COLOR = (0, 1, 0)
EYELID_CENTER = 'eyelid_center'
EYELID_CLOSE_COLOR = (1, 0, 0)
EYELID_GUIDE = 'eyelid_guide'
EYELID_INNER = 'eyelid_inner'
EYELID_OPEN_COLOR = (1, 0, 0)
EYELID_OUTER = 'eyelid_outer'
EYES_ROOT = 'eyesroot'
EYE_ROOT = 'eyeroot'
GUIDE_CURVE = 'guide_curve'
LOOKAT = 'lookat'
LOOKAT_GUIDECURVE = 'lookat_guidecurve'
LOOKAT_ROOT = 'lookat_root'
LOWERLID = 'lowerlid_guide'
MASTER_LOOKAT = 'master_lookat'
OPENED_BOT = 'opened_bot_guide'
OPENED_TOP = 'opened_top_guide'
RX_DRIVER = 'angle'
SIDE_DEFAULT = 0
SIDE_LEFT = 0
SIDE_RIGHT = 1
UPPERLID = 'upperlid_guide'
addRadiusParamter(node)

Adds a radius paramter to the interface

buildEyelidGuides(gdn, mgdn, parent, mirror_parent, curve_range)

Build the eyelid guides for one position (i.e. inner, center, outer) gdn: guidenodesdata mgdn: mirror_guidendoesdata parent: parent for main mirror_parent: parent for mirror curve_range: the range for the guide curve to rotate (about y)

buildEyelidGuidesFromExisting(gdn)
buildFromJsonExisting(json)
buildFromJsonNew(json, parent=None)
createCaptureGuide(gdn)

Creates the capture region guide for the eye

createEyelidCaptureLines(gdn, eye_root, eyelid_guides)

Creates the capture lines from eye root to each eyelid guide

createEyelidGuideAlongCircle(name, parent, circle, flip=False, r_range=(0, 60), offset=0, translate=False)

Creates an eyelid guide that orbits around createNodethe center of the circle

createEyelidGuideCHOP(node, center_guide)

Creates proportional parent blend constraint to the center_gudie for eyelid guide

createEyelidSOP(parent, gdn, curve_range, negative=False)

Creates the SOP for the eyelid guide curve

createLookAtCHOP(node, master_lookat, eyeroot)

Creates the CHOP network for the lookat guide

createSimpleParentCHOP(node, parent, maskvalue)

Creates a simple parent blend constraint node: the node to be parented parent: the parent node maskvalue: the mask value to apply on the blend

deleteGuides()
flipAngleParm(node)

Flip the angle parm to mirror the angle properly

getGuideObject(guidename, ismain=True)
lockGuides(lock)
showGuides(display)
snapEyeToGeometry(node, geo, primgrp=None)

Snap the eye_root to the eye geometry node: the obj node of the geometry geometry: the geometry data (hou.Geometry) primgrp: the primitive group for bounding box

toJSON()
updateMirror(value)
updateSide(value)

autorigs.modules.basicFace.eye.eyeGuideController module

class autorigs.modules.basicFace.eye.eyeGuideController.EyeGuideController(model)
onEyeGeoChanged(value)
onEyeGeoGroupChanged(value)
onMirrorToggled(value)
onSideChanged(value)
onSnapButtonPressed()

autorigs.modules.basicFace.eye.eyeGuideModel module

class autorigs.modules.basicFace.eye.eyeGuideModel.EyeGuideModel

Bases: autorigs.modules.base.baseGuideModel.BaseGuideModel

SIDE_DEFAULT = 0
SIDE_LEFT = 0
SIDE_RIGHT = 1
addSnapToEyeGeoCallback(fxn)
addUpdateEyeGeoCallback(fxn)
addUpdateMirrorCallback(fxn)
addUpdateSideCallback(fxn)
getEyeGeo()
getEyeGeoGroup()
getGeometry(node)
getMirrorGeo()
getMirrorGeoGroup()
getSide()
isMirrored()
setMirrorGeoGroup(value)
setMirrored(value)
setSide(value)
setUseMainGeo(value)
snapToEyeGeo(geo_node, grp)
updateEyeGeo(value)
updateEyeGeoGroup(value)
updateMirrorGeo(value)
useMainGeo()

autorigs.modules.basicFace.eye.eyeGuideOptions module

class autorigs.modules.basicFace.eye.eyeGuideOptions.ModuleOptionsWidget(buildguide, model, controller)

Bases: autorigs.modules.base.autoRigsBaseWidget.BaseOptionsWidget

SIDE_BUTTON_LABELS = ['Left', 'Right']
SIDE_LEFT = 0
SIDE_RIGHT = 1
changeFormLayout(formlayout)
fromJSON(json)
onEyeGeoChanged()
onMirrorGeoChanged()
repopulateList(dropdown_menu, new_list)
toJSON()
toggleMirrorGeometryOptions(value)
toggleMirrorOptions(value)

autorigs.modules.basicFace.eye.eyeGuideParams module

class autorigs.modules.basicFace.eye.eyeGuideParams.ModuleParamsWidget(eyeguide)

Bases: autorigs.modules.base.autoRigsBaseWidget.BaseParamWidget

EYELID_CENTER_GUIDE_NAME = 'Eyelid Center Guide'
EYELID_INNER_GUIDE_NAME = 'Eyelid Inner Guide'
EYELID_OUTER_GUIDE_NAME = 'Eyelid Outer Guide'
createEyelidGuideTab(guide_name)

Creates the widget of the eyelid guide tab

flipTabs(value)

Module contents