gear_mc
 All Classes Namespaces Functions Variables
Public Member Functions | Public Attributes | List of all members
gear.xsi.rig.guide.MainGuide Class Reference

GUIDE. More...

Inheritance diagram for gear.xsi.rig.guide.MainGuide:
gear.xsi.rig.component.guide.ComponentGuide gear.xsi.rig.guide.RigGuide gear.xsi.rig.component.arm_2jnt_01.guide.Guide gear.xsi.rig.component.arm_2jnt_02.guide.Guide gear.xsi.rig.component.chain_01.guide.Guide gear.xsi.rig.component.chain_cns_01.guide.Guide gear.xsi.rig.component.control_01.guide.Guide gear.xsi.rig.component.control_02.guide.Guide gear.xsi.rig.component.eye_01.guide.Guide gear.xsi.rig.component.eyebrow_01.guide.Guide gear.xsi.rig.component.eyelid_01.guide.Guide gear.xsi.rig.component.foot_bk_01.guide.Guide gear.xsi.rig.component.head_ik_01.guide.Guide gear.xsi.rig.component.leg_2jnt_01.guide.Guide gear.xsi.rig.component.leg_2jnt_02.guide.Guide gear.xsi.rig.component.leg_3jnt_01.guide.Guide gear.xsi.rig.component.leg_3jnt_02.guide.Guide gear.xsi.rig.component.meta_01.guide.Guide gear.xsi.rig.component.mouth_01.guide.Guide gear.xsi.rig.component.neck_ik_01.guide.Guide gear.xsi.rig.component.neck_ik_02.guide.Guide gear.xsi.rig.component.spine_ik_01.guide.Guide gear.xsi.rig.component.tail_01.guide.Guide gear.xsi.rig.component.wing_01.guide.Guide

Public Member Functions

def __init__
 
def addParameters
 Add more parameter to the parameter definition list. More...
 
def addLayout
 Add layout for new parameters. More...
 
def addLogic
 Add logic for new layout. More...
 
def addProperty
 Add a property (sn_PSet) with all the parameters from the parameter definition list. More...
 
def getParametersAsXml
 
def setParamDefValue
 Set the value of parameter with matching scriptname. More...
 
def setParamDefValuesFromProperty
 Set the parameter values from given property. More...
 
def setParamDefValuesFromXml
 Set the parameter values from given xml defintion. More...
 
def addParam
 Add a paramDef to the list. More...
 
def addFCurveParam
 Add a paramDef to the list. More...
 
def addToGroup
 Add the object to a group. More...
 

Public Attributes

 paramNames
 
 paramDefs
 List of parameter name cause it's actually important to keep them sorted. More...
 
 values
 Dictionary of parameter definition. More...
 
 layout
 Dictionary of options values. More...
 
 logic
 PPGLayout object. More...
 
 valid
 PPGLogic object. More...
 

Detailed Description

GUIDE.

The main guide class.
Provide the methods to add parameters, set parameter values, create property...

Member Function Documentation

def gear.xsi.rig.guide.MainGuide.addFCurveParam (   self,
  scriptName,
  keys,
  interpolation = c.siCubicInterpolation 
)

Add a paramDef to the list.


Note that animatable and keyable are false per default.

Parameters
self
scriptNameString - Parameter scriptname.
Returns
FCurveParamDef - The newly created parameter definition.
def gear.xsi.rig.guide.MainGuide.addLayout (   self)

Add layout for new parameters.

REIMPLEMENT. This method should be reimplemented in each guide.

Parameters
self
def gear.xsi.rig.guide.MainGuide.addLogic (   self)

Add logic for new layout.

REIMPLEMENT. This method should be reimplemented in each guide.

Parameters
self
def gear.xsi.rig.guide.MainGuide.addParam (   self,
  scriptName,
  valueType,
  value,
  minimum = None,
  maximum = None,
  sugMinimum = None,
  sugMaximum = None,
  animatable = False,
  readOnly = False,
  keyable = False 
)

Add a paramDef to the list.


Note that animatable and keyable are false per default.

Parameters
self
scriptNameString - Parameter scriptname.
valueTypeInteger - siVariantType.
valueVariant - Default parameter value.
minimumVariant - mininum value.
maximumVariant - maximum value.
sugMinimumVariant - suggested mininum value.
sugMaximumVariant - suggested maximum value.
animatableBoolean - True to make parameter animatable.
readOnlyBoolean - True to make parameter readOnly.
keyableBoolean - True to make parameter keyable.
Returns
ParamDef - The newly created parameter definition.
def gear.xsi.rig.guide.MainGuide.addParameters (   self)

Add more parameter to the parameter definition list.

REIMPLEMENT. This method should be reimplemented in each guide.

Parameters
self
def gear.xsi.rig.guide.MainGuide.addProperty (   self,
  parent,
  name 
)

Add a property (sn_PSet) with all the parameters from the parameter definition list.

Parameters
self
parentX3DObject - The parent of the property.
nameString - Name of the new property. @ return Property - The newly created property.
def gear.xsi.rig.guide.MainGuide.addToGroup (   self,
  objects,
  names = ["hidden"] 
)

Add the object to a group.

Parameters
self
objsSingle or List of X3DObject - object to put in group
namesSingle or List of String - names of the groups to create
def gear.xsi.rig.guide.MainGuide.setParamDefValue (   self,
  scriptName,
  value 
)

Set the value of parameter with matching scriptname.

Parameters
self
scriptNameString - Scriptname of the parameter to edit.
valueVariant - New value.
Returns
Boolean - False if the parameter wasn't found.
def gear.xsi.rig.guide.MainGuide.setParamDefValuesFromProperty (   self,
  prop 
)

Set the parameter values from given property.

Parameters
self
propProperty - The property to parse.
def gear.xsi.rig.guide.MainGuide.setParamDefValuesFromXml (   self,
  xml_prop 
)

Set the parameter values from given xml defintion.

Parameters
self
xml_rootxml_node - The xml definition to parse.

Member Data Documentation

gear.xsi.rig.guide.MainGuide.layout

Dictionary of options values.

gear.xsi.rig.guide.MainGuide.logic

PPGLayout object.

gear.xsi.rig.guide.MainGuide.paramDefs

List of parameter name cause it's actually important to keep them sorted.

gear.xsi.rig.guide.MainGuide.valid

PPGLogic object.

gear.xsi.rig.guide.MainGuide.values

Dictionary of parameter definition.


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