Changeset View
Changeset View
Standalone View
Standalone View
rigify/legacy/rigs/pitchipoy/limbs/leg.py
| Show All 12 Lines | |||||
| # You should have received a copy of the GNU General Public License | # You should have received a copy of the GNU General Public License | ||||
| # along with this program; if not, write to the Free Software Foundation, | # along with this program; if not, write to the Free Software Foundation, | ||||
| # Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. | # Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. | ||||
| # | # | ||||
| #======================= END GPL LICENSE BLOCK ======================== | #======================= END GPL LICENSE BLOCK ======================== | ||||
| # <pep8 compliant> | # <pep8 compliant> | ||||
| import bpy, math | import bpy, math | ||||
| from ....utils import MetarigError, connected_children_names | from ....utils import connected_children_names, create_circle_widget | ||||
| from ....utils import create_widget, copy_bone, create_circle_widget | from ....utils import copy_bone, flip_bone, put_bone | ||||
| from ....utils import strip_org, flip_bone, put_bone | |||||
| from rna_prop_ui import rna_idprop_ui_prop_get | from rna_prop_ui import rna_idprop_ui_prop_get | ||||
| from ..super_widgets import create_foot_widget, create_ballsocket_widget | from ..super_widgets import create_foot_widget, create_ballsocket_widget | ||||
| from .limb_utils import * | from .limb_utils import orient_bone, make_constraint, get_bone_name | ||||
| from .....utils.mechanism import make_property | from .....utils.mechanism import make_property | ||||
| def create_leg( cls, bones ): | def create_leg( cls, bones ): | ||||
| org_bones = list( | org_bones = list( | ||||
| [cls.org_bones[0]] + connected_children_names(cls.obj, cls.org_bones[0]) | [cls.org_bones[0]] + connected_children_names(cls.obj, cls.org_bones[0]) | ||||
| ) | ) | ||||
| ▲ Show 20 Lines • Show All 297 Lines • Show Last 20 Lines | |||||