
script: /* Opens SidePane1 */ moi.ui.createDialog( 'moi://ui/SidePane1.htm' ); 复制它建立快捷键
--------------------------------------------分割--------------------------------------------
<html>
<head>
<style>
#MiddleBody {
padding:0 0.3em 0 0.2em;
height:5em; /* starts with this but then expands to fill */
overflow-y:auto;
overflow-x:hidden;
}
moi\:PaletteHeader > moi\:TabContainer {
display:-webkit-box;
-webkit-box-orient:horizontal;
-webkit-box-align:stretch;
autodeactivate:true;
}
moi\:PaletteHeader > moi\:TabContainer > moi\:TabButton {
display:block;
-webkit-box-flex:1;
}
moi\:PaletteBody:not(#CommandBody) > table {
width:100%;
visibility:hidden;
height:0px;
overflow:hidden;
border-collapse:collapse;
}
moi\:PaletteBody:not(#CommandBody) td {
padding:0px 2px 2px 2px;
vertical-align:top;
text-align:-webkit-center;
}
</style>
<script src="SidePaneTabs.js"></script>
<script src="PropPanelSize.js"></script>
</head>
<body class="SidePaneBody">
<vbox style="width:600px; height:300px;">
<flex_vbox id="MiddleBody">
<tr>
<td><moi:CommandButton icon="icons/LineSetIcon.png" commandSet="lines"><moi:Text textid="Lines"/></moi:CommandButton></td>
<td><moi:CommandButton icon="icons/FreeformSetIcon.png" commandSet="freeform"><moi:Text textid="Freeform"/></moi:CommandButton></td>
<td><moi:CommandButton icon="icons/RectSetIcon.png" commandSet="rectangles"><moi:Text textid="Rect"/></moi:CommandButton></td>
<td><moi:CommandButton icon="icons/PolygonSetIcon.png" commandSet="polygons"><moi:Text textid="Polygon"/></moi:CommandButton></td>
<td><moi:CommandButton icon="icons/CircleSetIcon.png" commandSet="circles"><moi:Text textid="Circles"/></moi:CommandButton></td>
<td><moi:CommandButton icon="icons/ArcSetIcon.png" commandSet="arcs"><moi:Text textid="Arc"/></moi:CommandButton></td>
<td><moi:CommandButton icon="icons/EllipseSetIcon.png" commandSet="ellipses"><moi:Text textid="Ellipse"/></moi:CommandButton></td>
<td><moi:CommandButton icon="icons/MoreDrawCurvesIcon.png" commandset="moredrawcurves"><moi:Text textid="More"/></moi:CommandButton></td>
<td><moi:CommandButton icon="icons/PlaneSetIcon.png" commandSet="planes"><moi:Text textid="Plane"/></moi:CommandButton></td>
<td><moi:CommandButton icon="icons/BoxSetIcon.png" commandSet="boxes"><moi:Text textid="Box"/></moi:CommandButton></td>
</tr>
<tr>
<td><moi:CommandButton icon="icons/SphereIcon.png" command="sphere"><moi:Text textid="Sphere"/></moi:CommandButton></td>
<td><moi:CommandButton icon="icons/CylinderIcon.png" command="cylinder"><moi:Text textid="Cylinder"/></moi:CommandButton></td>
<td><moi:CommandButton icon="icons/ConeIcon.png" command="cone"><moi:Text textid="Cone"/></moi:CommandButton></td>
<td><moi:CommandButton icon="icons/TextIcon.png" command="text"><moi:Text textid="Text"/></moi:CommandButton></td>
<td><moi:CommandButton icon="icons/JoinIcon.png" command="join"><moi:Text textid="Join"/></moi:CommandButton></td>
<td><moi:CommandButton icon="icons/SeparateIcon.png" command="separate"><moi:Text textid="Separate"/></moi:CommandButton></td>
<td><moi:CommandButton icon="icons/TrimIcon.png" command="trim"><moi:Text textid="Trim"/></moi:CommandButton></td>
<td><moi:CommandButton icon="icons/ExtendIcon.png" command="extend"><moi:Text textid="Extend"/></moi:CommandButton></td>
<td><moi:CommandButton icon="icons/ShowPointsIcon.png" command="showpoints"><moi:Text textid="Show pts"/></moi:CommandButton></td>
<td><moi:CommandButton icon="icons/AddPointIcon.png" command="addpoint"><moi:Text textid="Add pt"/></moi:CommandButton></td>
</tr>
<tr>
<td><moi:CommandButton icon="res://copyclipboardicon" command="copyclipboard" rcommand="copyclipboardwithorigin"><moi:Text textid="Copy clipboard"/></moi:CommandButton></td>
<td><moi:CommandButton icon="res://pasteicon" command="paste" rcommand="pastepart"><moi:Text textid="Paste"/></moi:CommandButton></td>
<td><moi:CommandButton icon="icons/HideIcon.png" onclick="var gd = moi.geometryDatabase; if ( event.ctrlKey ) { gd.showSubset(); } else if ( event.button == 2 ) { gd.isolate(); } else { gd.hide(); }"><moi:Text textid="Hide"/></moi:CommandButton></td>
<td><moi:CommandButton icon="icons/LockIcon.png" onclick="var gd = moi.geometryDatabase; if ( event.ctrlKey ) { gd.unlockSubset(); } else if ( event.button == 2 ) { gd.isolateLock(); } else { gd.lock(); }"><moi:Text textid="Lock"/></moi:CommandButton></td>
<td><moi:CommandButton icon="res://historyicon" command="history"><moi:Text textid="History"/></moi:CommandButton></td>
<td><moi:CommandButton icon="ViewReset.png" onclick="moi.view.resetAll();"><moi:Text textid="Reset all"/></moi:CommandButton></td>
<td><moi:CommandButton icon="icons/ImageIcon.png" command="image"><moi:Text textid="Image"/></moi:CommandButton></td>
<td><moi:CommandButton icon="icons/CPlaneIcon.png" onclick="if ( event.button == 2 ) { moi.view.resetCPlane(); } else { moi.view.setCPlaneInteractive(); }"><moi:Text textid="CPlane"/></moi:CommandButton></td>
<td><moi:CommandButton icon="icons/SelectAllIcon.png" onclick="moi.geometryDatabase.selectAll();"><moi:Text textid="Sel all"/></moi:CommandButton></td>
<td><moi:CommandButton icon="icons/DeselectAllIcon.png" onclick="moi.geometryDatabase.deselectAll();"><moi:Text textid="Desel all"/></moi:CommandButton></td>
<td><moi:CommandButton icon="icons/InvertIcon.png" onclick="moi.geometryDatabase.invertSelection();"><moi:Text textid="Invert"/></moi:CommandButton></td>
</tr>
<tr>
<td><moi:CommandButton icon="icons/BooleanSetIcon.png" commandset="booleans"><moi:Text textid="Boolean"/></moi:CommandButton></td>
<td><moi:CommandButton icon="icons/FilletIcon.png" commandset="fillets"><moi:Text textid="Fillet"/></moi:CommandButton></td>
<td><moi:CommandButton icon="icons/OffsetSetIcon.png" commandset="offsets"><moi:Text textid="Offset"/></moi:CommandButton></td>
<td><moi:CommandButton icon="icons/PlanarSrfIcon.png" command="planarsrf"><moi:Text textid="Planar"/></moi:CommandButton></td>
<td><moi:CommandButton icon="icons/ExtrudeIcon.png" command="extrude"><moi:Text textid="Extrude"/></moi:CommandButton></td>
<td><moi:CommandButton icon="icons/RevolveIcon.png" commandset="revolves"><moi:Text textid="Revolve"/></moi:CommandButton></td>
<td><moi:CommandButton icon="icons/LoftIcon.png" command="loft"><moi:Text textid="Loft"/></moi:CommandButton></td>
<td><moi:CommandButton icon="icons/SweepIcon.png" command="sweep"><moi:Text textid="Sweep"/></moi:CommandButton></tdd>
<td><moi:CommandButton icon="icons/BlendIcon.png" command="blend"><moi:Text textid="Blend"/></moi:CommandButton></td>
<td><moi:CommandButton icon="icons/BlankIcon.png" command="nsided"><moi:Text textid="Nsided"/></moi:CommandButton></td>
</tr>
<tr>
<td><moi:CommandButton icon="icons/NetworkIcon.png" command="network"><moi:Text textid="Network"/></moi:CommandButton></td>
<td><moi:CommandButton icon="icons/ProjectIcon.png" commandset="constructcurve"><moi:Text textid="ConstructCurve"/></moi:CommandButton></td>
<td><moi:CommandButton icon="icons/MoveIcon.png" command="move"><moi:Text textid="Move"/></moi:CommandButton></td>
<td><moi:CommandButton icon="icons/CopyIcon.png" command="copy"><moi:Text textid="Copy"/></moi:CommandButton></td>
<td><moi:CommandButton icon="icons/RotateIcon.png" commandset="rotations"><moi:Text textid="Rotate"/></moi:CommandButton></td>
<td><moi:CommandButton icon="icons/ScaleIcon.png" commandset="scalings"><moi:Text textid="Scale"/></moi:CommandButton></td>
<td><moi:CommandButton icon="icons/MirrorIcon.png" command="mirror"><moi:Text textid="Mirror"/></moi:CommandButton></td>
<td><moi:CommandButton icon="icons/ArrayIcon.png" commandset="arrays"><moi:Text textid="Array"/></moi:CommandButton></td>
<td><moi:CommandButton icon="icons/AlignIcon.png" command="align"><moi:Text textid="Align"/></moi:CommandButton></td>
<td><moi:CommandButton icon="icons/OrientIcon.png" commandset="Orients"><moi:Text textid="Orient"/></moi:CommandButton></td>
</tr>
<tr>
<td><moi:CommandButton icon="icons/FlowIcon.png" commandset="deform"><moi:Text textid="Deform"/></moi:CommandButton></td>
<td><moi:CommandButton icon="moi://ui/icons/AlignHCenterIcon.png" command="Align HorizontalCenter"><moi:Text textid="Align horizontal center"/></moi:CommandButton>
<td><moi:CommandButton icon="moi://ui/icons/AlignTopIcon.png" command="Align HorizontalTop"><moi:Text textid="Align horizontal top"/></moi:CommandButton>
<td><moi:CommandButton icon="moi://ui/icons/AlignBottomIcon.png" command="Align HorizontalBottom"><moi:Text textid="Align horizontal bottom"/></moi:CommandButton>
<td><moi:CommandButton icon="moi://ui/icons/AlignVCenterIcon.png" command="Align VerticalCenter"><moi:Text textid="Align vertical center"/></moi:CommandButton>
<td><moi:CommandButton icon="moi://ui/icons/AlignLeftIcon.png" command="Align VerticalLeft"><moi:Text textid="Align vertical left"/></moi:CommandButton>
<td><moi:CommandButton icon="moi://ui/icons/AlignRightIcon.png" command="Align VerticalRight"><moi:Text textid="Align vertical right"/></moi:CommandButton>
</tr>
<tr>
</flex_vbox>
</vbox>
</body>
</html>
------------------------------------
复制上面网页代码保存为SidePane1.htm
放到ui文件目录下面就好了













