- Modifié
How to Center an entire Selection
Hello everybody.
I'm new to Spine and I think I made a rookie mistake that I would like to fix.
Today I finished an animation that I was working on and then I realized that the set of bones and meshes had not been centered correctly, not having used the PhotoshopToSpine script.
Is there a method to center the entire selection and not the individual bones and meshes or am I forced to start over this time using the script correctly?
Hi, welcome to the Spine forum!
Perhaps you want to reposition the root bone relative to the actual images, so first move the root bone so that your skeleton's images and bones are in the ideal position in Setup mode, then lock both Bone and Images
in Compensation, and then modify the translation of the root
bone to X:0 / Y:0 to fix the position. To learn more about Compensation, please see this section of the User Guide:
Tools - Spine User Guide: Compensation
If anything in the above description doesn't make sense to you, don't hesitate to let me know!
Thank you so much for the answer but it's not what i'm searching for.
The root bone is already in 0;0 where I want it
The problem is, I want to select all the meshes at the same time and put them in the root bone position to keep the same exact distance between each mesh but when I select all of them together and try to put them in 0;0, I can't do it entering the value of X and Y in the transform section.
I can do it manually with the cursor but it's not as accurate as I would like.
It's not super clear what you need to do, but Spine doesn't currently have numeric entry for moving mesh vertices. You can select a mesh and set the translation to world 0,0 and that will place the centroid of the mesh at world 0,0. If you do this with many meshes at once, it will set the position of the centroid of all the meshes at 0,0. It works this way because a mesh attachment doesn't have the concept of a single position, it is instead just a list of vertices which each have a position.
Placing images in Photoshop and using the script may or may not be easier than placing the manually in Spine. If you do want to use the Photoshop script, you can use Import Data
into an existing skeleton, which may help salvage any animations you've created.
thank you very much, it is the answer I was looking for but also the one I was not hoping for.
I apologize for not being able to express the problem clearly.