dilong

Hi, i need a help.
I need to create a precise rectangle with the clippink mask. Is there a possibility to set the individual points of the mask by means of numbers in the toolbars (as on the screenshot)?

Thanks
Attachments
spine_screenshot.jpg
dilong
Posts: 1

Erikari

I tried to do it and it seems like it's not possible at the moment. But it would make sense to be able to manually type values to edit individual vertices, so I've created an issue for this:
Allow to manually set the coordinates of individual vertices · #333 · EsotericSoftware/spine-editor
User avatar
Erikari

Erikari
Posts: 1291


Shiv

yep that would be super helpful ..... i faced the same problem many time .....
i used to edit the "json file" manually to enter numbers so that i could import the project again....
I had to take help of a coder as i was not able to find the correct values on my own .....
User avatar
Shiv
Posts: 51

ceemarcus

@Erikari Could it be possible to base a Clipping mask off the active pixels in an attachment? so I can make a layer with the shape of clip I want and Spine makes the clipping mask in place following the shape
User avatar
ceemarcus
Posts: 32

Erikari

If I ask Nate I'm sure there will be complications. When you say:
ceemarcus wrote:make a layer with the shape of clip I want
What is the layer? A mesh in Spine with some points you made?
Maybe if the mesh perimeter is converted into a clipping mask...? I'll ask (:
User avatar
Erikari

Erikari
Posts: 1291

ceemarcus

Erikari wrote:If I ask Nate I'm sure there will be complications. When you say:
ceemarcus wrote:make a layer with the shape of clip I want
What is the layer? A mesh in Spine with some points you made?
Maybe if the mesh perimeter is converted into a clipping mask...? I'll ask (:
Sorry for the late reply, I mean have a Layer (in the document before I export) with a shape I want the clip to be based on. Perhaps adding a tag like [ClippingMask] could make a Clipping mask based on the perimeter of what's on that layer?
User avatar
ceemarcus
Posts: 32

RemDust

ceemarcus wrote:
Erikari wrote:If I ask Nate I'm sure there will be complications. When you say:
ceemarcus wrote:make a layer with the shape of clip I want
What is the layer? A mesh in Spine with some points you made?
Maybe if the mesh perimeter is converted into a clipping mask...? I'll ask (:
Sorry for the late reply, I mean have a Layer (in the document before I export) with a shape I want the clip to be based on. Perhaps adding a tag like [ClippingMask] could make a Clipping mask based on the perimeter of what's on that layer?
would be EXTRA COOL ! :)
RemDust
Posts: 140

skarasuko

Clipping Mask is a feature I would like to see a major overhaul of, particularly as something very similar to After Effects' Mask. At the moment, the Clipping Mask of Spine is restricted to manually creating a polygonal area and controlling its vertices with weights (Pro).

If I can ask this, given a certain amount of time and addressing technical issues (e.g. RAM usage), can the developers of Spine possibly update the Clipping Mask so that it can detect or interpret the project's active alpha regions. It would also be great if you can include and exclude all the image layers for the target layer to clip within.

An example is a metal shield image and its glare image. I would like to control the glare's Translate keys and restrict its visibility within the shield image. However, there are potential complications: 1. The shield's design is so intricate that it can take time to design the Clipping Mask's polygon. 2. The shield is meshed and also being controlled by weights, so that means you need to make the Clipping Mask's weight behavior manually to reflect the shield's.

Redesigning the Masking feature, or adding to it, would improve the workflow a lot and really make Spine a powerful competitor.
skarasuko
Posts: 9

Nate

Clipping works the way it does because other solutions would be difficult or impossible to implement in game toolkits. It not terribly hard to put in fancy features that only work in the editor, but they also need to work in 40+ game toolkits across 7+ programming languages. We may support clipping via an image mask in the future, but for now Spine is limited to a clipping polygon.
User avatar
Nate

Nate
Posts: 8298


Return to Editor