Klaus wrote: Sat Oct 12, 2024 3:21 pm
Hi Bernd,
tried that, but didn't work, since setting the height will not change the topleft of the group.
...
Ouch, that was because my group was LOCLOCKED!
Anyway, after 25 years of working with MC, RR and LC, I learned something new -> layerClipRect
That does EXACTLY what i wanted to achieve with a one-liner.
Anyway, after 25 years of working with MC, RR and LC, I learned something new -> layerClipRect
That does EXACTLY what i wanted to achieve with a one-liner.
I tried "layerClipRect" on the group and it worked, I had not heard of that property either.
KInd regards
Bernd
Edited: Klaus not "Klause".
Last edited by bn on Sun Oct 13, 2024 9:53 am, edited 1 time in total.
The layerClipRect only affects the visibly rendered part of a control. It does not change the actual rect of that control. In your first post, you mentioned that what you were looking for could easily be done by dragging handles with the mouse, but not under script control.
But dragging handles actually changes the rect of the control of interest. The layerClipRect does not do that, though it looks the same. So did you really want that very first action?
Here is something, if you set the layerClipRect on a control, and then go to a different app, like the finder, that control reverts visibly to its original rect. It "restores" itself when LC is back in front.
I got a hint from the mailing-list and I am only interested in the VISIBLE result.
I know what "layerClipRect" does and this is the right thing for me currently.