Hi Michael,
Thank you very much for your kind response and instruction, I appreciate it.
Inspired very much by Dinos awesome script palette, I have decided to have a very amateur attempt at producing an icon menu version of the same. Please try not to laugh, my expertise is more in 3D modelling and rendering than it is in html coding! :D [Spacebar activated]
<html>
<head>
<style>
body {
padding: 4px;
}
</style>
</head>
<body class="MenuBody">
<nobr>
<moi:CommandButton icon="moi://ui/icons/TrimIcon.png" command="Trim"><moi:Text textid="Trim"></moi:CommandButton>
<moi:Spacer>
<moi:CommandButton icon="moi://ui/icons/MirrorIcon.png" command="Mirror"><moi:Text textid="Mirror"></moi:CommandButton>
<moi:Spacer>
<moi:CommandButton icon="moi://ui/icons/OffsetIcon.png" command="Offset"><moi:Text textid="Offset"></moi:CommandButton>
<moi:MenuSeparator>
<moi:CommandButton icon="moi://ui/icons/CPlaneIcon.png" command="script: /* CPlane */ moi.view.setCPlaneInteractive();"><moi:Text textid="CPlane"></moi:CommandButton>
<moi:Spacer>
<moi:CommandButton icon="moi://ui/icons/CPlaneIcon.png" command="script: /* Set CPlane to current view */ moi.view.setCPlane( moi.ui.mainWindow.viewpanel.getViewport('3D').targetFrame );"><moi:Text textid="View"></moi:CommandButton>
<moi:CommandButton icon="moi://ui/icons/CPlaneIcon.png" command="script: /* Reset CPlane to default */ moi.view.resetCPlane();"><moi:Text textid="Reset"></moi:CommandButton>
<moi:CommandButton icon="moi://ui/icons/ScaleIcon.png" command="Scale"><moi:Text textid="Scale"></moi:CommandButton>
<moi:Spacer>
<moi:CommandButton icon="moi://ui/icons/Scale2dIcon.png" command="Scale2d"><moi:Text textid="Scale 2d"></moi:CommandButton>
<moi:Spacer>
<moi:CommandButton icon="moi://ui/icons/Scale1dIcon.png" command="Scale1d"><moi:Text textid="Scale 1d"></moi:CommandButton>
<moi:MenuSeparator>
<moi:CommandButton icon="moi://ui/icons/BooleanDifferenceIcon.png" command="BooleanDifference"><moi:Text textid="Diff"></moi:CommandButton>
<moi:Spacer>
<moi:CommandButton icon="moi://ui/icons/BooleanUnionIcon.png" command="BooleanUnion"><moi:Text textid="Union"></moi:CommandButton>
<moi:Spacer>
<moi:CommandButton icon="moi://ui/icons/BooleanIntersectionIcon.png" command="BooleanIntersection"><moi:Text textid="Isect"></moi:CommandButton>
<moi:Spacer>
<moi:CommandButton icon="moi://ui/icons/BooleanMergeIcon.png" command="BooleanMerge"><moi:Text textid="Merge"></moi:CommandButton>
</nobr>
</body>
</html>
So I have a few questions if I may please?
1. Is there anyway to get the window to automatically close after one of the icons has been clicked on? As it is at the moment, it obscures the viewing window when one of the icons is selected.
2. I noticed that the textid's for some of the icons is not working? I'm wondering if it is because of the overall size of the palette window (too small) or the textid's not being recognised by the software? Sometimes they seemed to work, sometimes they didn't? (Boolean icons textid's are a good example)
Thank you for your time and help! :)
Kind regards,
Tim