# -*- coding: utf-8 -*- """ :author: Jeremy Ernst :description: This module contains the class for defining the hinge component. The hinge component creates 3 joints for a basic hinge. """ import artv2.components.base_components.base_component as base class Hinge(base.ART_Component): """ This class defines and creates the hinge component. The hinge component creates 3 joints for a basic hinge. """ nice_name = "Hinge" category = "Primitives" base_name = "hinge" has_sides = True joint_mover_file = "resources\\rigging_guides\\hinge.ma" mirror_table = {"translateX": -1, "translateY": -1, "translateZ": -1, "rotateX": 1, "rotateY": 1, "rotateZ": 1} # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # def _add_metadata(self, network_node, prefix, suffix): super(Hinge, self)._add_metadata(network_node, prefix, suffix)