Providing User Interface Text for a Command

In addition to the command name, a command also has a description and tooltip that are displayed in the Softimage user interface:

• The description is a brief description displayed in different dialog boxes such as the Customize Toolbar, Keyboard Mapping, and Plug-in Manager dialog boxes.

• The tooltip is a short description displayed when the user points to the command button on a toolbar. If no tooltip is defined, the description is displayed instead, and if no description is defined, the command name is displayed.

The description and tooltip are specified in the Init callback:

function MyCommand_Init( ctxt )
{
   var oCmd;
   oCmd = ctxt.Source;

   oCmd.Description = "Does something extremely useful.";
   oCmd.Tooltip = "Do something";

   // ...

   return true;
}


Autodesk Softimage v7.5