balala wrote: ↑
May 14th, 2020, 6:08 am
Actually as far as I can tell, at least for me it works:
However I had to add a X=5
options to [MeterShapes], because without these, I get the upper and left side of the skin cut off.
In fact both codes are working same way, get the same result. However the same X and Y options had to be added on both codes.
Well, yeah, in my samples it all works properly (bar the offset that had to be set on X and Y that I didn't bother to add since it was trivial), since the idea was to produce the same results throught 2 different methods, but in the OP's code
he initially had:
Code: Select all
--- Anchors Rotation ---
which were incorrect, and that's why things were spread out everywhere. He probably set these variables trying to find out where he needs to set the center of rotation, because, as I mentioned here
in the P.S., I think
that the coordinates for rotations/skewing/scaling (basically all the shapes' Transform Modifiers
) need to follow the same principles as in TransformationMatrix
, where all transformations are relative to the top left corner of the window and not the meter itself. If so, the manual should have explicitly mentioned that, in my view.
Bottom line, if these things were "normal" (like in a Roundline meter, for example), then the center of rotation shouldn't have needed an offset on it, and would have been simply #ArcCenterX#
, basically the same center as the ellipse. Choice 2 doesn't use the Rotate parameter of the shapes, so it's completely free of this drawback of having to set an offset to the rotation center - that's why I recommended it.