Search found 3 matches

by antonyng
Mon Jun 12, 2023 8:53 am
Forum: Scripting
Topic: Make a shape follow any existing shape bounds not work when source layer has non-zero origin AND non-one scale
Replies: 6
Views: 1858

Re: Make a shape follow any existing shape bounds not work when source layer has non-zero origin AND non-one scale

Thank you for your reply. But what confused me is I don't understand why I don't need to consider origin at all if the scale x/y is reset to 1, but it becomes incorrect once both origin and scale x/y is altered? The layer origin offsets the coordinate system, with the origin always at 0,0. So you'd ...
by antonyng
Sat Jun 03, 2023 1:08 pm
Forum: Scripting
Topic: Make a shape follow any existing shape bounds not work when source layer has non-zero origin AND non-one scale
Replies: 6
Views: 1858

Re: Make a shape follow any existing shape bounds not work when source layer has non-zero origin AND non-one scale

The green shape is in no transform layer, and red shape is in with transform layer, you can see the points follow red shape layer shape is wrong.

Image
by antonyng
Sat Jun 03, 2023 1:07 pm
Forum: Scripting
Topic: Make a shape follow any existing shape bounds not work when source layer has non-zero origin AND non-one scale
Replies: 6
Views: 1858

Make a shape follow any existing shape bounds not work when source layer has non-zero origin AND non-one scale

Hi all, I try to write a script that create shape that follow the bounds of another layer, I have get this working. But strangely if the layer has both non-zero origin AND non-one scale, the result with be incorrect. But if just either factor is true, the result is also correct. I somehow know that ...