Import_3ds: Improved distance cue chunk import
[blender-addons.git] / rigify / utils / __init__.py
blobd8ae90c26b291fe376feb5f9dc0d5cd62d82cd69
1 # SPDX-FileCopyrightText: 2019-2022 Blender Foundation
3 # SPDX-License-Identifier: GPL-2.0-or-later
5 # These forwarding imports are for backwards compatibility with legacy code
6 # that expects a single utils.py file. New code should import directly from
7 # the modules that contain the utilities. Also, don't add more imports here.
9 from . import errors, misc, rig, naming, bones, collections, layers, widgets, widgets_basic, widgets_special
11 from .errors import MetarigError
13 from .misc import angle_on_plane, linsrgb_to_srgb, gamma_correct, copy_attributes
15 from .naming import ORG_PREFIX, MCH_PREFIX, DEF_PREFIX, ROOT_NAME
16 from .naming import strip_trailing_number, unique_name, org_name, strip_org, strip_mch, strip_def
17 from .naming import org, make_original_name, mch, make_mechanism_name, deformer, make_deformer_name
18 from .naming import insert_before_lr, random_id
20 from .bones import new_bone, flip_bone, put_bone
21 from .bones import align_bone_roll, align_bone_x_axis, align_bone_z_axis, align_bone_y_axis
23 from .widgets import WGT_PREFIX, obj_to_bone, create_widget, write_widget, create_circle_polygon
25 from .widgets_basic import create_line_widget, create_circle_widget, create_cube_widget, create_chain_widget
26 from .widgets_basic import create_sphere_widget, create_limb_widget, create_bone_widget
28 from .widgets_special import create_compass_widget, create_root_widget
29 from .widgets_special import create_neck_bend_widget, create_neck_tweak_widget
31 from .rig import RIG_DIR, METARIG_DIR, TEMPLATE_DIR, outdated_types, upgrade_metarig_types
32 from .rig import write_metarig, get_resource
33 from .rig import connected_children_names, has_connected_children
35 from .layers import ControlLayersOption
37 # Definitions so bad as to make them strictly compatibility only
38 from .bones import copy_bone as copy_bone_simple
39 from .bones import _legacy_copy_bone as copy_bone
40 from .bones import _legacy_make_nonscaling_child as make_nonscaling_child