The PolyToolsPaintDeform Global Utility Plugin introduced in 3ds Max 2011 exposes an interface which provides MAXScript access to the Graphite Paint Deform tools.
The functionality was first implemented in 3ds Max 2010 using different functions that were not officially supported as MAXScript tools. This interface consolidates all relevant properties and methods in one place and let MAXScript users apply them in their own tools.
Alsosee PolyToolsShift : GlobalUtilityPlugin for properties and methods related to the Shift tool also found in the Paint Deform panel of the Ribbon.
PolyToolsPaintDeform interfaces:
Get/set thestate of the Cap Offset option.
When set to true, the deformation over the same vertices within the same stroke will be capped at the Offset value.
When set to false, the deformation over the same vertices within the same stroke will be applied continuously.
Get/set the Normal Direction mode for all tools.
Corresponds to the selection of the "Normal Direction" flyout in the Ribbon.
EntersPush/PullPaint Deformationmode.
Returns true if the mode was entered successfully, false otherwise.
Enters Relax/Soften Paint Deformation mode.
Returns true if the mode was entered successfully, false otherwise.
Enters Flatten Paint Deformation mode.
Returns true if the mode was entered successfully, false otherwise.
Enters Pinch/Spread Paint Deformation mode.
Returns true if the mode was entered successfully, false otherwise.
Enters Smudge Paint Deformation mode.
Returns true if the mode was entered successfully, false otherwise.
Enters Noise Paint Deformation mode.
Returns true if the mode was entered successfully, false otherwise.
Enters Exaggerate Paint Deformation mode.
Returns true if the mode was entered successfully, false otherwise.
Enters Revert Paint Deformation mode.
Returns true if the mode was entered successfully, false otherwise.
Commits the deformations applied during the current Paint Deformation session.
Equivalent to pressing the Commit button.
Returns true on success, false on failure.
Discards the deformations applied during the current Paint Deformation session.
Equivalent to pressing the Cancel button.
Returns true on success, false on failure.
Updates theBrush tousethe current normals instead of the original normals.
This method is only valid when the NormalDirection property is set to 0 (Original).
To perform automatic update of the normals and always use the deformed ones, set the NormalDirection property to 1 (Deformed).
Opens the Brush Options dialog.
Returns true on success, false on failure.
See also PainterInterface : ReferenceTarget
Exits the current Deformation Painting mode, while also commiting the changes.
Returns true on success, false on failure.