// Author: Holger 'Lynxx' Hippenstiel & Nait - holger.hippenstiel AT gmx.de // Released under Creative Commons BY-NC-ND 3.0 http://creativecommons.org/licenses/by-nc-nd/3.0/deed.de // zzz_mousefilter.script V1.0 allows to: // moving objects while pressing shift // rotate around a common center of all objects while pressing alt // scale objects while pressing ctrl try { app.removeEventFilter(mousemovemonitor); } catch(e) { } function debug(text) { if (app.debug != null) { app.debug(QTime.currentTime()+" "+text); }} // physicsItemForGraphicsItem was replaced against physicsItemFromGraphicsItem in V1.01 Fix for this world.physicsItemForGraphicsItem=world.physicsItemForGraphicsItem?world.physicsItemForGraphicsItem:world.physicsItemFromGraphicsItem; physicsItems = new Array(); function currentSelectionSet() { var graphicsItems = graphicsView.scene().selectedItems(); var len = graphicsItems.length; physicsItems = new Array(); for(var i = 0, index = 0; i