I have a C# plugin with a Rhino.Commands.Style.ScriptRunner command. When executed, this command will export an object from the active document and send it to a remote service. However, if the user right-clicks in a viewport this command is repeated. I would like to stop that.
I have found File->Properties->General->“Never repeat this command” and verified that this works to prevent the command from being repeated, but I would like to add the command to this setting when the plugin is installed. I’m not seeing how to do that.
Does the installer allow me to add this exclusion (how?) or should I check every time my plugin loads to ensure that the command exclusion is still there?
Sorry for the quick follow-up, but if I right-click in the command window I get a popup with the options “Enter”, “Copy” (disabled), and “Clear”, and then under the separator bar my command name appears and I can select and execute it. Is this a Rhino bug or should I have to do something else to prevent the command from appearing in the context menu?