Difference between revisions of "Script:No Token Rotation"
From Roll20 Wiki
m |
m (235259 moved page User:235259/No Token Rotation to Script:No Token Rotation) |
Revision as of 18:00, 8 January 2015
The following script modifies the behavior of the rotation handle on graphics objects. When the rotation handle is released, the object is set to 0 degrees rotation. In other words, rotation is prevented while this script is running.
Code
on('change:graphic:rotation', function(obj, prev) { obj.set('rotation', 0); });