custom "command set" scripting

Next
 From:  pressure (PEER)
11118.1 
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
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  Michael Gibson
11118.2 In reply to 11118.1 
Hi Peer, the problem is that currently it only looks for command set .xml files in the install command folder, it doesn't also check in the appdata commands folder.

I'll update this so that it will also look for them there in the next v5 beta.

- Michael
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
 From:  pressure (PEER)
11118.3 In reply to 11118.2 
I'm looking forward to it Michael.
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged
 

Reply to All Reply to All