Okay so quick question, In MDX there is an option to have the buttons execute a command. So logcally, I was thinking of just creating a command, then have the command execute a number of things, such as toggle output and change variable image. Ho do I actualy implement the command in the fusioncontrolcenter config? There's the COM section that has a section for commands, but my understanding is that this is for external communication, such as passing commands from
RRfusion to MDX and vise versa, correct?
I tried creating commands and putting them in this section anyway, but haven't been successful. Perhaps there's something simple that I'm missing that someone could correct for me:
<!-- Begin COM -->
<com status="enabled">
<commands>
</commands>
<executable_commands>
<command id="defrost" minimum_delta_vote_time="20">
<do function="trigger output" functionTargetID="defrost" vote_opinion="on" vote_priority="medium"></do>
<do function="enable or disable" functionTargetID="NINJABUTTON_defrost" vote_opinion="Disable" vote_priority="Low"></do>
<do function="change variable" functionTargetID="defrost" vote_opinion="+1" vote_priority="medium"></do>
</command>
</executable_commands>
</com>
<!-- End COM -->
</general>
<button id="NINJABUTTON_Defrost" enabled="yes" function="execute command" functionTargetID="defrost" vote="attached" vote_opinion="run" vote_priority="High">
<images imagePrimary="content\images\button_images\Defrost .png" imageSecondary="content\images\button_images\Defro st.png" imageDisabled="content\images\button_images\Defros tdown.png" imagePushed="content\images\button_images\Defrostd own.png"></images>
<display size="115,70" location="48,221" page="0" z_order="0.9"></display>
<vote_options minimum_delta_vote_time_down="20" minimum_delta_vote_time_up="20"></vote_options>
<up_click up_click_function="change variable" up_click_functionTargetID="defrost" up_click_vote_opinion="run" up_click_vote="attached" up_click_vote_priority="Low"></up_click>
</button>
With this code, MX opens fine, but when I click the defrost button, I get a message claiming that the specified file cannot be found? All I want is for pressing a button in MDX to perform multiple actions, it really shouldn't be that difficult, but for someone with as little programming knowledge as myself, it is becomming overwhelming. Any help would as always be greatly appreciated.
P.S. For the button "vote opinion" I put in "run" as I have no idea what this should be. Probably half the reason why things aren't working...lol
Bookmarks