The PolyToolsShift Global Utility Plugin introduced in 3ds Max 2011 exposes an interface that provides MAXScript access to the Graphite Shift 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.
Constructor:
Class instances not creatable by MAXScript PolyToolsShift interfaces:
Interface: PolyToolsShift Properties:
PolyToolsShift. FullStrength: integer : Read|Write Get/set the Shift Full Strength value.
PolyToolsShift.Falloff: integer : Read|Write Get/Set the Shift Falloff value.
PolyToolsShift.UseMirror: boolean : Read|Write Get/set the state of the Use Mirror option.
PolyToolsShift.Strength: integer : Read|Write Get/set the Strength % Value.
PolyToolsShift.UseSelectedVerts: boolean : Read|Write Get/set the state of the Use Selected Vertices option.
PolyToolsShift.IgnoreBackfacing: boolean : Read|Write Get/set the state of the Ignore Backfacing option.
Methods:
<boolean>PolyToolsShift.StartTool() Enters Shift mode.
Returns true on success, false otherwise.
<boolean>PolyToolsShiftEndTool.() Exits Shift mode.
Returns true on success, false otherwise.
<boolean>PolyToolsShift.GetAxisFrozen <value>axis Returns the state of the Freeze Axis specified by the argument.
Possible argument values are:
#x - X axis#y - Y axis#z - Z axis<boolean>PolyToolsShift.SetAxisFrozen <value>axis <boolean>onOff Sets the state of the Freeze Axis specified by the first argument to the Boolean value specified by the second argument.
Possible first argument values are:
#x - X axis#y - Y axis#z - Z axis<boolean>PolyToolsShift.GetAxisFrozenEdges <value>axis Returns the state of the Freeze Selected Edges axis specified by the argument.
Possible argument values are:
#x - X axis#y - Y axis#z - Z axis<boolean>PolyToolsShift.SetAxisFrozenEdges <value>axis <boolean>onOff Sets the state of the Freeze Selected Edges axis specified by the first argument to the Boolean value specified by the second argument.
Possible first argument values are:
#x - X axis#y - Y axis#z - Z axis<value>PolyToolsShift.GetMirrorAxis () Returns the Mirror axis as a name value.
Possible values are:
#x - X axis#y - Y axis#z - Z axis<boolean>PolyToolsShift.SetMirrorAxis <value>axis Sets the Mirror axis to the name value provided by the argument.
Possible values are:
#x - X axis#y - Y axis#z - Z axis