Participant
November 29, 2023
Answered
the position of the corner markers relative to the dimensions of the rectangle
- November 29, 2023
- 1 reply
- 342 views
Hello. the question arose, which expression should be used so that when changing the size of the rectangle, the position of the markers on its corners was changed.
I used an expression based on the scale
try{
s = scale [0]/100;
L = thisLayer;
while (L.hasParent){
s *= L.parent.scale[0]/100;
L = L.parent;
}
w = value;
w/s
}catch(e){
value;
};
but it doesn't work for me, because the thickness of the stroke and the size of the markers change during non-proportional scaling. so I decided that changing the position of the markers relative to the size of the rectangle would solve this problem, but I don't know what expression to use for this. I will be grateful for your help)
in the attached video showed how it works based on scale

