MoI discussion forum
MoI discussion forum

Full Version: Share your MoI keyboard shortcuts

Show messages:  1-6  7-26  27-46  47-66  67-72

From: eric (ERICCLOUGH)
20 Feb 2019   [#47] In reply to [#46]
Thanks Michael ...
I do understand ... my car quit running yesterday and I had to cancel all my current meetings.
Stuff happens ..
cheers,
eric
From: Elang
21 Feb 2019   [#48]
What is the command for: View > Display Hidden Lines ?
I 'd like to put it in my shortcut. Thanks in advance...
From: nameless
21 Feb 2019   [#49] In reply to [#48]
Hi Elang,

I believe it's this:

script: /* Toggle hidden line display */ moi.view.showHiddenLines = !moi.view.showHiddenLines;
From: Elang
21 Feb 2019   [#50] In reply to [#49]
Hi nameless...
Yes that's the one. Thank you very much for your help !

Cheers !.. :)
From: Konni
28 Nov 2019   [#51] In reply to [#6]
Hi Marco (mkdm),
Saw your forum thread about hotkeys - and found one F9 you were explaining and did a video about.
How to make Toggle / ResetTransparentDisplay script?
I'm on Win10, Moi V4 beta.
Want to have this hotkey useful script on one Key? Is this possible?
Or two keys?
Thank you
From: mkdm
29 Nov 2019   [#52] In reply to [#51]
Hi Konni.

Well...I'm sorry but I think I didn't understand what you want to say with "Want to have this hotkey useful script on one Key? Is this possible? Or two keys?"


Anyway...if this can help I paste here the actual code of the two scripts:

Please remember that I wrote this scripts for the V3 and I don't know if they work also with V4


ToggleTransparentDisplayAutoSel.js
code:
/* Toggle Transparence Display Mode AutoSel*/
var gd = moi.geometryDatabase;
var objs = gd.getSelectedObjects();
if (objs.length == 0) {
	objs = gd.getObjects();
}

for ( var i = 0; i < objs.length; ++i ) {
	var obj = objs.item(i);
	if (!obj.hidden) {
		var dm = obj.displayMode;
		obj.displayMode = (dm == 1) ? 0 : 1;
	}
}



ResetTransparentDisplay.js
code:
/* Reset Transparence Display Mode*/
var gd = moi.geometryDatabase;
var objs = gd.getObjects();
objs.setProperty("displayMode", 0);


Hope this help. I can't do more actually. Not enough free time unfortunately :)

Have a nice day.
From: Psygorn (DRILLBIT)
4 Jan 2021   [#53]

Hello everyone, is there a way to create "multiple sequence" hot keys?

For example Imagine I want to perform "chamfer" I would press "f" so, the fillet button would be selected and by pressing "f" or "c" on keyboard either "fillet" or "chamfer" could be selected respectively.

Is it possible to have such hotkeys inside of moi? If yes, would you please guide me how I can have them?


From: Michael Gibson
4 Jan 2021   [#54] In reply to [#53]
Hi Psygorn, sorry no there currently isn't any method set up for making multi sequence shortcut keys like that. It is something that I want to add in though.

- Michael
From: Psygorn (DRILLBIT)
4 Jan 2021   [#55] In reply to [#54]
Oh ok, that would be great :-)
From: Metin (METIN_SEVEN)
4 Jun 2021   [#56]
Since upgrading to MoI V4 I've completely rebuilt my shortcuts from scratch. As usual, the shortcuts are a never-ending project, but here's my current collection of commands and scripts that are assigned to various keys.

On a side note: some of the keyboard shortcuts are chosen to match those in ZBrush, and some may match Blender keyboard shortcuts.

[Shortcut Keys]
.=BoundingBoxCenter
/=script: /* Isolate selection */ moi.geometryDatabase.isolate();
0=script: /* Edge loop selection */ moi.geometryDatabase.selectLoop();
1=Scale1D
2=Scale2D
3=script: /* Open Add New Style dialog */ var gd = moi.geometryDatabase; gd.styleEditorOpened(); var dialog = moi.ui.createDialog( 'EditStyleDialog.htm?titleid=Add style dialog title&index=-1', '', moi.ui.mainWindow ); if ( dialog.window.doModal() != -1 ) { var styles = gd.getObjectStyles(); if ( styles.length> 0 ) moi.ui.propertiesPanel.editStyleIndex( styles.length - 1 ); } gd.styleEditorClosed();
4=script: /* Open Edit styles dialog */ var dialog = moi.ui.createDialog( 'EditStylesDialog.htm', 'resizeable,defaultWidth:380,defaultHeight:420', moi.ui.mainWindow ); dialog.window.doModal();
\==Extrude
\\=script: /* Lock selection toggle */ moi.geometryDatabase.lock();
`=ShowPoints
A=Align
Alt+A=ArrayDir
Alt+B=BlendCap
Alt+C=CloseCurve
Alt+D=DelCorners
Alt+E=EllipseDiameter
Alt+F=FatLines
Alt+H=script: /* Select objects to unhide */ moi.geometryDatabase.showSubset();
Alt+M=cMorph
Alt+N=Network
Alt+P=Project
Alt+R=RailRevolve
Alt+S=Shell
Alt+U=UnwrapCurve
Alt+Z=script: /* Toggle visibility of all curves */ var objs = moi.geometryDatabase.getObjects().getCurves(); var ishidden = objs.length> 0 ? objs.item(0).hidden : false; objs.setProperty( 'hidden', !ishidden );
B=Blend
C=Circle
Ctrl+A=script:moi.geometryDatabase.selectAll();
Ctrl+Alt+S=IncrementalSave
Ctrl+C=CopyClipboard
Ctrl+E=Export
Ctrl+F=script: /* Zoom all viewports out a little */ var vnames = [ 'Top', 'Front', 'Right', '3D' ]; for ( var i = 0; i < 4; ++i ) { moi.ui.mainWindow.viewpanel.getViewport(vnames[i]).zoom( 1.1 ); }
Ctrl+I=script: /* Invert selection */ moi.geometryDatabase.invertSelection();
Ctrl+N=New
Ctrl+Numpad/=BooleanMerge
Ctrl+O=Open
Ctrl+P=script: /* Copy PDF format to clipboard */ moi.geometryDatabase.copyToClipboardPDF();
Ctrl+R=Rebuild
Ctrl+S=Save
Ctrl+Shift+Alt+S=script: /* Shrink selection 1.0 */ function es(edg){ var i,f; for (i=0; i<edg.length; i++) {f=edg.item(i).getFacesOfEdge(); f.setProperty('selected',0);}} var gd = moi.geometryDatabase; gd.invertSelection(); var so = gd.getSelectedObjects(), sf=so.getFaces(), i; gd.invertSelection(); for ( i=0; i<sf.length;i++) es(sf.item(i).getEdges());
Ctrl+Shift+C=CopyClipboardWithOrigin
Ctrl+Shift+D=Copy
Ctrl+Shift+O=script: /* Open most recent file */ var Files = moi.ui.getRecentFiles(); if ( Files.length> 0 ) { var LastFile = Files.item(Files.length-1); var FileName = LastFile.item(2); var Options = LastFile.item(3); moi.command.execCommand( 'open ' + FileName + Options ); }
Ctrl+Shift+S=SaveAs
Ctrl+Shift+V=PastePart
Ctrl+Shift+Z=script:moi.command.redo();
Ctrl+Space=script: /* Toggle quad view */ if ( moi.ui.mainWindow.viewpanel.mode != 'split' ) { moi.ui.mainWindow.viewpanel.mode = 'split' } else { var viewport = moi.ui.getViewportUnderMouse(); if ( viewport ) { viewport.viewPanel.mode = viewport.name } }
Ctrl+V=Paste
Ctrl+X=Cut
Ctrl+Y=script:moi.command.redo();
Ctrl+Z=script:moi.command.undo();
D=Fillet
Delete=Delete
DownArrow=Nudge Down
E=Scale boundingboxcenter
F=script: /* Show all in viewports */ moi.view.resetAll();
F1=script:moi.launchHelp();
F2=/* Edit object name */ var pp = moi.ui.propertiesPanel; if (pp.show && pp.numSelectedObjects > 0) { pp.editName(); }
H=script: /* Hide selection */ moi.geometryDatabase.hide();
I=script: /* Toggle background image on or off */ var images = moi.view.getBackgroundImages(); for ( var i = 0; i < images.length; ++i ) images.item(i).hidden = !images.item(i).hidden;
J=Join
L=Loft
LeftArrow=Nudge Left
M=Merge
N=script: /* Select naked edges (open borders) */ var gd = moi.geometryDatabase; gd.deselectAll(); var breps = gd.getObjects().getBreps(); for ( var i = 0; i < breps.length; ++i ) breps.item(i).getNakedEdges().setProperty( 'selected', true );
Numpad*=BooleanIntersection
Numpad+=BooleanUnion
Numpad-=BooleanDifference
Numpad/=BooleanMerge
O=Offset
P=PlanarSrf
PageDown=Nudge ZDown
PageUp=Nudge ZUp
R=Rotate
RightArrow=Nudge Right
S=Sweep
Shift+\\=script: /* Toggle between Parallel and Perspective view */ var vp = moi.ui.mainWindow.viewpanel.getViewport('3D'); vp.projection = (vp.projection == 'Perspective' ? 'Parallel': 'Perspective');
Shift+`=AddPoint
Shift+A=Curve
Shift+Alt+A=ArrayCurve
Shift+C=ArcContinue
Shift+DownArrow=Nudge Down Small
Shift+E=ScaleIndividual
Shift+F=script: /* Toggle edge display */ var breps = moi.geometryDatabase.getObjects().getBReps(); var hide = true; for ( var i = 0; i < breps.length; ++i ) { var edges = breps.item(i).getEdges(); if ( i == 0 ) hide = !edges.item(0).hidden; edges.setProperty( 'hidden', hide ); }
Shift+I=Image
Shift+L=moi.geometryDatabase.selectLastCreated();
Shift+LeftArrow=Nudge Left Small
Shift+N=NSided
Shift+O=Orient
Shift+PageDown=Nudge ZDown Small
Shift+PageUp=Nudge ZUp Small
Shift+R=Revolve
Shift+RightArrow=Nudge Right Small
Shift+S=Pipe2Thickness
Shift+UpArrow=Nudge Up Small
Shift+W=ExplodeMove
Shift+X=Mirror
Space=script: /* Toggle between opposite views under pointer */ moi.ui.mainWindow.viewpanel.reverseView( moi.ui.getActiveViewport().name );
T=Trim
UpArrow=Nudge Up
W=Move
X=Delete
Z=script: /* Toggle snaps on or off */ moi.drawingAids.gridSnap = !moi.drawingAids.gridSnap; moi.drawingAids.objectSnap = moi.drawingAids.gridSnap; moi.drawingAids.straightSnap = moi.drawingAids.gridSnap;
From: MPSchmied
27 Nov 2022   [#57]
Need a Keyboard Shortcut for the command "Area" to change the view rotate midpoint. This is the most important view function for me, it should works just with Ctrl+Shift.
From: Michael Gibson
28 Nov 2022   [#58] In reply to [#57]
Hi MPSchmied, you can set up a keyboard shortcut for Zoom Area by using this for the command part of the shortcut key:

script: var v = moi.ui.getActiveViewport(); if ( v ) v.interactiveViewChange('zoomarea');

That will trigger the area zoom on the viewport that the mouse is over.

But you can't set a shortcut just for ctrl+shift on their own, those are meant to be used as modifier keys that can be used in addition to another key.

- Michael
From: mk (MARKY)
28 Nov 2022   [#59] In reply to [#58]
This is great!

Even better than Ctrl+Shift and mouse area in Rhino, because here the zoom area can be precisely selected.
From: Elang
9 Dec 2022   [#60]
Hello.

Can we assign shortcut keys for ortho view that is work vice versa?

So if I press Ctrl+Numpad1, It will go to FULL FRONT VIEW (assume that I'm not in the Front View beforehand).
If it is already in Full Front View, then it will go to FULL BACK VIEW (the exact opposite of Front View) when I press the same shortcut.
Next, if I press the same shortcut key again, it will go to FRONT VIEW again. And so on.

This will also Works for RIGHT-LEFT and TOP-BOTTOM, with different shortcut key for each.

Hope I make myself clear in this, and please pardon my English.

Thank you very much in advance for any help.

:)
From: Michael Gibson
9 Dec 2022   [#61] In reply to [#60]
Hi Elang, there are some view setting shortcut key scripts listed here:
http://moi3d.com/forum/index.php?webtag=MOI&msg=3808.2

Are any of those close to what you want?

- Michael
From: Elang
10 Dec 2022   [#62] In reply to [#61]
Hi Michael

I tried the script from your link. I expect that if i tap the hotkey, the view will be change to the opposite direction from the current one.
So if it is in Front View, then tapping the same key will bring it to the Back View. Tapping it again will bring me to the Front View. And so on.

The script is not doing that for now.

Thank you.
From: Michael Gibson
10 Dec 2022   [#63] In reply to [#62]
Hi Elang, try these ones:

Set Top/Bottom view:

script: /* Set Top/Bottom view */ var vname = 'Top'; var vp = moi.ui.mainWindow.viewpanel; if ( vp.mode.toLowerCase() != vname.toLowerCase() ) { vp.mode = vname; } else { vp.mode = vname; vp.reverseView( vname ); }

Set Front/Back view:

script: /* Set Front/Back view */ var vname = 'Front'; var vp = moi.ui.mainWindow.viewpanel; if ( vp.mode.toLowerCase() != vname.toLowerCase() ) { vp.mode = vname; } else { vp.mode = vname; vp.reverseView( vname ); }

Set Right/Left view:

script: /* Set Right/Left view */ var vname = 'Right'; var vp = moi.ui.mainWindow.viewpanel; if ( vp.mode.toLowerCase() != vname.toLowerCase() ) { vp.mode = vname; } else { vp.mode = vname; vp.reverseView( vname ); }


- Michael
From: Elang
10 Dec 2022   [#64] In reply to [#63]
It works, Michael.

Thank you very much!
From: none (EVALON)
14 Apr 2023   [#65]
Hi All,

I have a quick question that I hope one of you can help with:

Using much of the fine information in this thread I have sorted out most of my shortcut key wishes, however, I can't seem to find out what the shortcut key is for editing the "size" (x,y,z size dialog box) of a selected object. I probably have missed it but would one of you know what it is?

Best regards & wishing you a pleasant day!

Jesper
From: Frenchy Pilou (PILOU)
14 Apr 2023   [#66] In reply to [#65]
Scale, Scale1D, Scale2D ;)

http://moi3d.com/4.0/docs/moi_command_reference11.htm#shortcutkeys

But for that you want exactly no need shortcut it's direct! :)


Show messages:  1-6  7-26  27-46  47-66  67-72