Sie sind nicht angemeldet.

1

Sonntag, 17. September 2023, 13:17

Creating rotate and zoom button for layer image

I want to create a feature to zoom and rotate the image layer when clicking a button. Does anyone know how to do it?
I have parent layer type="container" and layer image inside it

2

Sonntag, 24. September 2023, 10:36

Hi, here is a code example
increase scale - change_scale(1.01);
reduce scale - change_scale(0.99);

Quellcode

1
2
3
4
5
<action name="change_scale" scope="local" args="val" >
	asyncloop(caller.pressed,
		mul(layer[image].scale, get(val)); 
	);
</action>