Character Vault
Any Concept / Any System
Your System Come To Life
Roll20 for Android
Streamlined for your Tablet
Roll20 for iPad
Streamlined for your Tablet

Personal tools

Difference between revisions of "Script:No Token Rotation"

From Roll20 Wiki

Jump to: navigation, search

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.


on('change:graphic:rotation', function(obj, prev) { obj.set('rotation', 0); });