Exemplo n.º 1
0
    def select_anim_curves(self):
        """selects animCurves of parentConstraint and stabilizerParent nodes for
        keyframe editing
        """
        if not self._is_setup:
            return

        pm.select(auxiliary.get_anim_curves(self._parent_constraint),
                  auxiliary.get_anim_curves(self._stabilizer_parent))
Exemplo n.º 2
0
    def set_keyframe_colors(self):
        """sets the keyframe colors for the parentConstraint and stabilizerParent
        """
        # get all anim_curves
        anim_curves = auxiliary.get_anim_curves(self._parent_constraint) + \
            auxiliary.get_anim_curves(self._stabilizer_parent)

        color = [0, 1, 0]  # green

        # set anim curve colors to green
        for animCurve in anim_curves:
            auxiliary.set_anim_curve_color(animCurve, color)