{"id":17722486,"url":"https://github.com/leixingyu/snaptool","last_synced_at":"2025-03-31T13:24:52.755Z","repository":{"id":43215877,"uuid":"378538546","full_name":"leixingyu/snapTool","owner":"leixingyu","description":"Maya rigging tool to snap any IK to FK and vice versa","archived":false,"fork":false,"pushed_at":"2022-04-23T00:49:27.000Z","size":48,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2023-03-09T23:47:04.112Z","etag":null,"topics":["inverse-kinematics","maya-python","rigging"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/leixingyu.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2021-06-20T01:57:09.000Z","updated_at":"2023-03-04T18:13:41.000Z","dependencies_parsed_at":"2022-09-11T22:23:47.008Z","dependency_job_id":null,"html_url":"https://github.com/leixingyu/snapTool","commit_stats":null,"previous_names":[],"tags_count":null,"template":null,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/leixingyu%2FsnapTool","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/leixingyu%2FsnapTool/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/leixingyu%2FsnapTool/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/leixingyu%2FsnapTool/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/leixingyu","download_url":"https://codeload.github.com/leixingyu/snapTool/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246473273,"owners_count":20783236,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["inverse-kinematics","maya-python","rigging"],"created_at":"2024-10-25T15:38:28.366Z","updated_at":"2025-03-31T13:24:52.729Z","avatar_url":"https://github.com/leixingyu.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cdiv align=\"center\"\u003e\n\u003ch1 align=\"center\"\u003eSnap Tool\u003c/h1\u003e\n\n  \u003cp align=\"center\"\u003e\n    Since FK/IK Rig is a very common but necessary setup, so is a tool that allows FK and IK controller\nmatching. Snap tool is an animation tool that match IK controller\nto FK controller and vice versa.\n    \u003cbr /\u003e\n    \u003ca href=\"https://youtu.be/t8vuaqPDf0g\"\u003eFull Demo\u003c/a\u003e\n  \u003c/p\u003e\n\u003c/div\u003e\n\n## About The Project\n\n\u003cdiv align=\"left\"\u003e\n\u003cimg src=\"https://i.imgur.com/Jww19rH.png\" alt=\"snap-tool\" height=\"280px\"/\u003e\n\u003c/div\u003e\n\nI've come across two methods to achieve FK/IK snapping/matching,\nboth methods relies on assessing the joint info, \nas controller is a layer on top of the joints and can be drastically\ndifferent across rig types.\n\n- Constraint-based: used for easy setup\n    - **FK to IK**: use joint position in FK mode to point constraint IK controllers\n    - **IK to FK**: use joint rotation in IK mode to orient constraint FK controllers\n\n\n- Vector math: used for generic setup\n    - **FK to IK**: set IK handle and IK root based on joint position in FK mode; calculate\n  mid-vector based on joint position in FK mode to set IK pole vector.\n    - **IK to FK**: set FK controllers to joint rotations in IK mode\n\n## Getting Started\n\n1. Unzip the [snapTool.zip](https://github.com/leixingyu/snapTool/releases/tag/v1.0.0) package under\n`%USERPROFILE%/Documents/maya/[current maya version]/scripts/`\nor a custom directory under `PYTHONPATH` env variable. \n\n2. Launch through script editor:\n    ```python\n    from snapTool import snapUI\n    snapUI.show()\n    ```\n\n## Usage\n\n### Step 1: Assign Joints\n\nthe tools take a snapshot of the current active\nresult joint, and record its transform information.\n\n\u003cimg src=\"https://i.imgur.com/o0fjQGs.gif\" alt=\"assign\" width=\"75%\" height=\"75%\"/\u003e\n\n### Step 2: Assign Controllers\n\nassign either FK controllers or IK controllers\nfor matching by selecting it.\n\n### Step 3: Snap!\n\nclick 'snap' will force the transform matching to the joint snapshot\n\n\u003cimg src=\"https://i.imgur.com/ZDFv0Oo.gif\" alt=\"switch\" width=\"75%\" height=\"75%\"/\u003e\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fleixingyu%2Fsnaptool","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fleixingyu%2Fsnaptool","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fleixingyu%2Fsnaptool/lists"}