aboutsummaryrefslogtreecommitdiff
path: root/scripts/artv2/components/hinge.py
blob: a8f62f156a12d54b83a9a88b5658dff4c495b561 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
# -*- 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)