Search found 2 matches

by avv
Sat Aug 12, 2023 2:20 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: 1854

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? I'm confused by this as well. My observation is that Moho subtracts the layer's transfo...
by avv
Mon Aug 07, 2023 8:31 pm
Forum: Scripting
Topic: Transforming a layer's bounding box
Replies: 0
Views: 4248

Transforming a layer's bounding box

With the MohoLayer:Bounds method, one can retrieve a BBox object with the fMin and fMax points of a layer. I need to find out how transform these points by the translation, scale and rotation of the layer in order to get the enclosing box around the transformed layer But simply offsetting these poin...