LockRelativeZeroInit.js 578 B

123456789101112
  1. function init(basePath) {
  2. var action = new RGuiAction(qsTranslate("LockRelativeZero", "&Lock Relative Zero"), RMainWindowQt.getMainWindow());
  3. action.setRequiresDocument(true);
  4. action.setScriptFile(basePath + "/LockRelativeZero.js");
  5. action.setIcon(basePath + "/LockRelativeZero.svg");
  6. action.setDefaultShortcut(new QKeySequence("r,l"));
  7. action.setDefaultCommands(["lockrelativezero", "rl"]);
  8. action.setGroupSortOrder(15800);
  9. action.setSortOrder(200);
  10. action.setWidgetNames(["SnapMenu", "SnapToolBar", "SnapToolsPanel", "SnapMatrixPanel"]);
  11. }