def resetPose(pvp): """ Reset everything back to rest Parameters ---------- pvp : [(str, float), ...] A list of property/value pairs """ for prop, val in pvp: xsi.setValue(prop, 0)
def setPose(pvp, multiplier): """ Set a percentage of a pose Parameters ---------- pvp : [(str, float), ...] A list of property/value pairs multiplier : float The percentage multiplier of the pose """ for prop, val in pvp: xsi.setValue(prop, val * multiplier)
def resetPose(pvp): ''' reset everything back to rest ''' for prop, val in pvp: xsi.setValue(prop, 0)
def setPose(pvp, multiplier): ''' Set a percentage of a pose ''' for prop, val in pvp: xsi.setValue(prop, val * multiplier)