Tool property sheets
Tool property sheets are interactive editors for displaying and modifying the properties
of a context. They are similar to attribute editors for modifying properties of a
dependency graph node. They execute the context command following user actions in
the editor to perform editing operations on the activated context. The tool property
sheet for the activated context is displayed by double-clicking on the tool’s icon.
- Implementation of a tool property sheet for your context entails writing two MEL files,
one for editing the context and one for querying the context.
- The files must be named <yourContextName>Properties.mel and <yourContextNameValues.mel
where <yourContextName> is the name of your context as returned by the getClassName() method of your context.
- The <>Properties.mel file defines the layout of the editor and the actions to be taken
by widgets in the editor.
- The <>Values.mel file is used to retrieve values from the context with the editor
Refer to the helixProperties.mel and helixValues.mel files in the example plug-in
directory for a sample implementation of a property sheet.
To effectively implement a tool property sheet for your context, you must implement
sufficient edit and query options in your context command as well as sufficient access
methods in your MPxContext class for setting and retrieving its internal properties.