I'm having problems setting up a custom commandSet. I've got a startup script setting TransformTabContent to:
code:
<table>
<tbody><tr>
<td><moi:commandbutton icon="icons/MoveIcon.png" command="move"><img src="icons/MoveIcon.png"><div><moi:text textid="Move">Move</moi:text></div></moi:commandbutton></td>
<td><moi:commandbutton icon="icons/CopyIcon.png" command="copy"><img src="icons/CopyIcon.png"><div><moi:text textid="Copy">Copy</moi:text></div></moi:commandbutton></td>
<td><moi:commandbutton icon="icons/RotateIcon.png" commandset="rotations"><img src="icons/RotateIcon.png"><div><moi:text textid="Rotate">Rotate</moi:text></div></moi:commandbutton></td>
<td><moi:commandbutton icon="icons/ScaleIcon.png" commandset="scalings"><img src="icons/ScaleIcon.png"><div><moi:text textid="Scale">Scale</moi:text></div></moi:commandbutton></td>
</tr>
<tr>
<td><moi:commandbutton icon="icons/MirrorIcon.png" command="mirror"><img src="icons/MirrorIcon.png"><div><moi:text textid="Mirror">Mirror</moi:text></div></moi:commandbutton></td>
<td><moi:commandbutton icon="icons/ArrayIcon.png" commandset="arrays"><img src="icons/ArrayIcon.png"><div><moi:text textid="Array">Array</moi:text></div></moi:commandbutton></td>
<td><moi:commandbutton icon="icons/AlignIcon.png" command="align"><img src="icons/AlignIcon.png"><div><moi:text textid="Align">Align</moi:text></div></moi:commandbutton></td>
<!-- commandSet xyz here -->
<td><moi:commandbutton icon="icons/OrientIcon.png" commandset="xyz"><img src="icons/OrientIcon.png"><div><moi:text textid="Orient">Orient</moi:text></div></moi:commandbutton></td>
</tr>
<tr>
<td><moi:commandbutton icon="icons/FlowIcon.png" commandset="deform"><img src="icons/FlowIcon.png"><div><moi:text textid="Deform">Deform</moi:text></div></moi:commandbutton></td>
<td></td>
<td></td>
<td></td>
</tr>
</tbody></table>
and then in the commands subfolder of appdata I have xyz.xml:
code:
<commandset>
<command>orient_hide</command>
<command>orientlinetoline</command>
<command>orientviewtoview</command>
</commandset>
and also xyz.htm:
code:
<html>
<body class="CommandSetBody">
<moi:CommandButton icon="moi://ui/icons/OrientIcon.png" command="orient_hide"><moi:Text textid="Orient"/></moi:CommandButton>
<moi:SmallSpacer />
<moi:CommandButton icon="moi://ui/icons/OrientLineToLineIcon.png" command="orientlinetoline"><moi:Text textid="OrientLineToLine"/></moi:CommandButton>
<moi:SmallSpacer />
<moi:CommandButton icon="moi://ui/icons/OrientViewToViewIcon.png" command="orientviewtoview"><moi:Text textid="OrientViewToView"/></moi:CommandButton>
</body>
</html>
and then I've got Orient_hide.htm and Orient_hide.js also in commands.
The problem is that no flyout appears when I click on the Orient commandButton in the Transform palette. What's the right way to set up a custom commandSet without directly editing the native files?
- Peer
|