Share your MoI keyboard shortcuts

 From:  mkdm
8123.6 In reply to 8123.5 
Hi Mindset,

I effect its name it's a little confusing.

Essentyally these scripts do these things :

1) ToggleTransparentDisplayAutoSel
Essentially this script toggles the DisplayMode of a (non hidden) GeomObject between two state : Normal or FaintWireframe.
If something is selected it works only on selected otherwise on all non hidden objects.
Now I have assigned it to F9 shortcut.

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;
	}
}


Here's a brief video of F9 (the last showed by the video is ResetTransparentDisplay Alt+F9)

http://take.ms/kUv0C

2) ResetTransparentDisplay
This script resets the DisplayMode to Normal state for ALL objects (included hidden ones).
Now I have assigned it to Alt+F9 shortcut.

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


So, I post here also my updated hotkeys.

Best,

- Marco (mkdm)