• Editor
  • How center the view on the selected object

Hello! I couldn't find a way to center the camera view in the viewport on the selected object. What I expect: I select an attachment or a bone in a tree, press, for example, ctrl+f (or any other combination) and the camera view moves to the selected object and centers on it.

Related Discussions
...

To center the camera view on a selected object in Spine, you can use the auto-scroll feature in the tree. When you select something in the viewport, it will be selected in the tree, and if you enable auto-scroll, the tree will automatically scroll to the selected items whenever the selection changes. This can help you quickly locate and focus on the selected object. Unfortunately, there isn't a direct shortcut like Ctrl+F to center the camera view in the viewport on the selected object, but using the tree's auto-scroll feature can be a helpful workaround.

  • ram876 ответили на это сообщение.

    Spinebot
    Unfortunately, when I click on an object with the auto-scroll feature enabled, the camera does not center on the selected object. This feature, as I understand it, works differently. If it is enabled, then when an object is selected in the viewport window, the tree automatically expands to the selected object. I need the opposite, after I have selected an object in the tree, the camera should be centered on the object in the viewport.

    Spinebot got it wrong this time, auto scroll is only for the tree.

    We don't have a hotkey to zoom to the selection, only to the whole skeleton (ctrl+shjift+F) or 100% zoom (ctrl+F). No one has asked for zoom to selection before. In Spine typically you use mouse wheel zoom most of the time and occasionally pan by dragging the right mouse button. Unlike most apps, in Spine mouse wheel zoom both pans and zooms. Panning is based on the position of the mouse cursor relative to the center of Spine's viewport. This can quickly become very natural, allowing you to set both pan and zoom almost instantly.

    Can you explain exactly why and when you need zoom to selection? We could consider adding it, possibly overloading zoom to fit so it uses the selection.

    • ram876 ответили на это сообщение.

      Nate Thanks for the reply. What it's for: it's so convenient for me to quickly navigate to the selected object. If there are a lot of elements in the viewport, I think it will make it easier to navigate through them. I'm still learning how to work in spine 2d, but it made my job easier at affinity designer, for example.

      • Misaki ответили на это сообщение.

        ram876 I do understand your point, but when it comes to how frequently that feature is actually needed, I still think there might not be many opportunities to use it. This is because Spine already clearly highlights the selected item in the viewport with the current UI, and in most cases, you can quickly find the selected item by zooming out.
        Additionally, I thought you might prefer using the Outline view. This is similar to the navigator window found in many image editing software, and as shown in the following video, it highlights where you are currently looking with an orange frame:

        Using the Outline view makes it easier to see what part of the skeleton you are looking at, which can be useful.

        • ram876 ответили на это сообщение.

          Misaki In this case, I suggest asking the rest of the community how much they need this feature. In this case, there is no big problem in finding the selected object, but you must agree, if I am working at an enlarged scale and now I need to move to another object, I need time to move the camera away, find the selected object visually and bring the camera closer to this point. And if there is a shortcut, it will take me less than a second to switch. Outline view is convenient for orientation, but it does not show selected objects and I will have to move the camera away. As I said, I'm new to Spine, so for now I'm only judging by the experience I've gained working with other graphics programs.

          • Misaki ответили на это сообщение.

            ram876 After asking the Spine team for their opinion, I received feedback that it would be good to have some hotkeys for focusing, so I created an issue for this enhancement:
            EsotericSoftware/spine-editor883
            You can subscribe to this issue ticket to receive notifications when there is any progress on this issue.

            • ram876 ответили на это сообщение.
            • ram876 оценил это.

              Misaki Thanks! I hope this improves the user experience from Spine.