{"id":21951582,"url":"https://github.com/toxe/blender-scripts","last_synced_at":"2025-10-10T06:31:39.111Z","repository":{"id":134563978,"uuid":"479016950","full_name":"Toxe/blender-scripts","owner":"Toxe","description":"Blender Scripts","archived":false,"fork":false,"pushed_at":"2024-04-12T12:37:06.000Z","size":706,"stargazers_count":4,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-04-03T17:11:13.304Z","etag":null,"topics":["blender","blender-python","blender-scripts","python"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Toxe.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null}},"created_at":"2022-04-07T14:19:07.000Z","updated_at":"2024-11-25T02:04:42.000Z","dependencies_parsed_at":"2023-06-18T21:03:24.164Z","dependency_job_id":null,"html_url":"https://github.com/Toxe/blender-scripts","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Toxe/blender-scripts","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Toxe%2Fblender-scripts","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Toxe%2Fblender-scripts/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Toxe%2Fblender-scripts/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Toxe%2Fblender-scripts/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Toxe","download_url":"https://codeload.github.com/Toxe/blender-scripts/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Toxe%2Fblender-scripts/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279002967,"owners_count":26083489,"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","status":"online","status_checked_at":"2025-10-10T02:00:06.843Z","response_time":62,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["blender","blender-python","blender-scripts","python"],"created_at":"2024-11-29T06:15:07.465Z","updated_at":"2025-10-10T06:31:38.617Z","avatar_url":"https://github.com/Toxe.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Blender Scripts\n\nOpen `Python.blend` for an example Blender file that contains all scripts.\n\nSupported versions: Blender 3+ and 4+\n\n## Operators\n\n### Align Bone to Transform Orientation\n\nAlign bone to a *Custom Transform Orientation* and recalculate roll so that the bone Z axis points along the custom orientation X axis.\n\n\u003e Run the `op_align_bone_to_transform_orientation.py` script once to register the new \"Align Bone to Transform Orientation\" operation.\n\n[op_align_bone_to_transform_orientation.py](op_align_bone_to_transform_orientation.py)\n\n1. Go into *Edit Mode* (`Tab` when in *Object Mode*).\n\n2. Switch to *Face Select* mode (`3`).\n\n3. Select an object face.  \n\n   ![align_bone_to_transform_orientation_03.png](images/align_bone_to_transform_orientation_03.png)\n\n4. Create a *Custom Transform Orientation*.\n\n   Two options:\n\n   - Option 1: Open the command palette (`F3` or Edit --\u003e Menu Search), type \"transform create orientation\" and execute the\n     \"Create Orientation\" command. This will create a new *Custom Transform Orientation* called \"Face\" (by default).\n     (Note: Older Blender versions will *not* automatically select the transform it. See: step 5.)\n\n     ![align_bone_to_transform_orientation_04a.png](images/align_bone_to_transform_orientation_04a.png)\n\n   - Option 2: Open the \"Transform Orientations\" menu in the header of your 3D Viewport editor and click on the `+` button.\n     This will create a new *Custom Transform Orientation* called \"Face\" (by default) and automatically select it.\n\n     ![align_bone_to_transform_orientation_04b.png](images/align_bone_to_transform_orientation_04b.png)\n\n5. If your new *Custom Transform Orientation* isn't already selected: Open the \"Transform Orientations\" menu\n   in the header of your 3D Viewport editor and select \"Face\" at the bottom. (\"Face\" is the default name if\n   this was the first manually created custom orientation.)\n\n   ![align_bone_to_transform_orientation_05.png](images/align_bone_to_transform_orientation_05.png)\n\n6. Snap (`Shift+S`) --\u003e Cursor to Selected\n\n   ![align_bone_to_transform_orientation_06.png](images/align_bone_to_transform_orientation_06.png)\n\n7. Select an existing armature and enter *Edit Mode*.\n\n8. Either add a new bone or select an existing bone.\n\n   ![align_bone_to_transform_orientation_08.png](images/align_bone_to_transform_orientation_08.png)\n\n9. Open the command palette (`F3`) and type \"Align Bone to Transform Orientation\".  \n   Or: Right click the bone in *Edit Mode* and select the same operation.\n\n   ![align_bone_to_transform_orientation_09a.png](images/align_bone_to_transform_orientation_09a.png)\n\n   ![align_bone_to_transform_orientation_09b.png](images/align_bone_to_transform_orientation_09b.png)\n\n10. Now the bone sits orthogonal on the selected face and is rolled in a way that its Z axis points along the X axis of the\n    *Custom Transform Orientation*.\n\n    ![align_bone_to_transform_orientation_10a.png](images/align_bone_to_transform_orientation_10a.png)\n\n    ![align_bone_to_transform_orientation_10b.png](images/align_bone_to_transform_orientation_10b.png)\n\n11. The newly created \"Face\" orientation can now be deleted.\n\n\n## Test Scripts\n\nJust a couple of test scripts.\n\n### [test_move_cursor.py](test_move_cursor.py)\n\nGet location of a vertex and move cursor to Z +1 in local space.\n\n### [test_object_info.py](test_object_info.py)\n\nShow object info and convert vertex coordinates between local and global space.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftoxe%2Fblender-scripts","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftoxe%2Fblender-scripts","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftoxe%2Fblender-scripts/lists"}