EsotericSoftware / EsotericSoftware/spine-editor

Snap the parent tip and child origin to each other as needed

Open
#950 0 comments 0 reactions 0 assignees View on GitHub
enhancement
Dominant language
No language data
Stars
33
Forks
2
PR merge metrics
No merged PRs in 30d

Description

When creating bones, you may occasionally need to adjust the tip of a parent bone later so that it aligns with the origin of its child. Although you can change a bone’s length by clicking and dragging its tip, achieving perfect alignment using only the visual information in the viewport can be difficult.
![Image](https://github.com/user-attachments/assets/2aa0cb91-be2c-4fef-b856-08f3621c63a4)

For precise placement, you currently need to determine the parent bone’s length first and then use that value as a reference when entering the child bone’s translation numerically. This process can be somewhat cumbersome.

It would be helpful to have a feature that snaps the parent bone’s tip to the child bone’s origin when adjusting length in the viewport, as well as a feature that snaps the child bone’s origin to the parent bone’s tip when translating it in setup mode.

**Workaround:**
The example above assumes that the parent bone’s tip and the child bone’s origin are not aligned from the beginning. However, you can avoid this situation by using one of the following methods:

- After creating the parent bone using the `Create` tool, do not move the mouse cursor; create the child bone immediately.
- After creating the parent bone, select either the local axis or parent axis and click the `New...` button at the bottom of the Tree View to create the next bone, then adjust its length afterward.
- Assign a key to the `New Bone` hotkey. After creating the parent bone, press that key to create the child bone immediately, then adjust its length afterward.

When using this approach to keep the parent bone’s tip perfectly aligned with the child bone’s origin, you can hold the `Alt` key (`Opt` on macOS) while moving the tip. This ensures that the child bone remains correctly attached to the tip as it moves, eliminating the need to reposition it manually each time.

**Related forum thread:**
https://esotericsoftware.com/forum/d/29467-%EC%84%A0%ED%83%9D%EB%90%9C-%EB%BC%88%EC%9D%98-%EB%B0%A9%ED%96%A5%EA%B3%BC-%EA%B8%B8%EC%9D%B4%EB%A5%BC-%EB%8B%A4%EB%A5%B8-%EB%BC%88-%EC%9D%98-%EC%9C%84%EC%B9%98%EC%97%90-%EB%A7%9E%EC%B6%B0-%EC%88%98%EC%A0%95%ED%95%98%EA%B8%B0ik%EC%99%80-%EB%B9%84%EC%8A%B7%ED%95%98%EC%A7%80%EB%A7%8C-%EB%8B%A4%EB%A5%B8/4

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.