Rotate a dynamic panel on drag

Hi!

I was playing around with the new Rotate command in Axure 8. Here’s a dynamic panel that rotates on drag.

[Live sample.](http://hhyk68.axshare.com)

It’ll rotate whatever you put into it. (Don’t delete the dynamic panel inside of it called _vars, though.) Could be useful for making radial sliders and such.

File: drag_panel_to_rotate.rp (87.5 KB) (Axure 8)

1 Like

This is awesome! Do you know if there is a way to make it rotate from the corner instead of from center?

@SHall
Without changing the script?
Just add a big enough area (circle in the screenshot) at the back of the panel.
Arrange the object you want to rotate so that the anchor points to the center of the panel.
Add a panel with an empty action if you want to only allow dragging the object.

drag_panel_to_rotate (1).rp (91.0 KB)

@josephxbrick
Nice!

1 Like

That works Perfect! Thanks!