https://github.com/leixingyu/snaptool
Maya rigging tool to snap any IK to FK and vice versa
https://github.com/leixingyu/snaptool
inverse-kinematics maya-python rigging
Last synced: 7 months ago
JSON representation
Maya rigging tool to snap any IK to FK and vice versa
- Host: GitHub
- URL: https://github.com/leixingyu/snaptool
- Owner: leixingyu
- Created: 2021-06-20T01:57:09.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2022-04-23T00:49:27.000Z (over 3 years ago)
- Last Synced: 2023-03-09T23:47:04.112Z (over 2 years ago)
- Topics: inverse-kinematics, maya-python, rigging
- Language: Python
- Homepage:
- Size: 46.9 KB
- Stars: 3
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Snap Tool
Since FK/IK Rig is a very common but necessary setup, so is a tool that allows FK and IK controller
matching. Snap tool is an animation tool that match IK controller
to FK controller and vice versa.
Full Demo
## About The Project
![]()
I've come across two methods to achieve FK/IK snapping/matching,
both methods relies on assessing the joint info,
as controller is a layer on top of the joints and can be drastically
different across rig types.- Constraint-based: used for easy setup
- **FK to IK**: use joint position in FK mode to point constraint IK controllers
- **IK to FK**: use joint rotation in IK mode to orient constraint FK controllers- Vector math: used for generic setup
- **FK to IK**: set IK handle and IK root based on joint position in FK mode; calculate
mid-vector based on joint position in FK mode to set IK pole vector.
- **IK to FK**: set FK controllers to joint rotations in IK mode## Getting Started
1. Unzip the [snapTool.zip](https://github.com/leixingyu/snapTool/releases/tag/v1.0.0) package under
`%USERPROFILE%/Documents/maya/[current maya version]/scripts/`
or a custom directory under `PYTHONPATH` env variable.2. Launch through script editor:
```python
from snapTool import snapUI
snapUI.show()
```## Usage
### Step 1: Assign Joints
the tools take a snapshot of the current active
result joint, and record its transform information.
### Step 2: Assign Controllers
assign either FK controllers or IK controllers
for matching by selecting it.### Step 3: Snap!
click 'snap' will force the transform matching to the joint snapshot