SetRelativeZeroInit.js 573 B

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