Garment_Maker-SuperClass:modifier; super-superclass:MAXWrapper -classID:#(940967468, 1610249612)The Garment_Maker modifier turns a shape into a garment panel to be used in cloth simulations. It provides optimal meshing for achieving wrinkles and cloth-like behavior.
Constructor
Garment_Maker...
Garmentize2 ...Properties
<Garment_Maker>.density Float default: 1.0 -- floatGet/Set the value of the "Density" spinner.
<Garment_Maker>.autoMesh BooleanClass default: true -- booleanGet/Set the state of the "Auto mesh" checkbox. When true (default), the meshing is performed automatically. When false, the meshing is performed manually by either pressing the Mesh It button in the UI or by calling the gmakerOps.meshit() method documented below.
<Garment_Maker>.preserve BooleanClass default: true -- booleanGet/Set the state of the "Preserve" checkbox.
<Garment_Maker>.relax BooleanClass default: false -- booleanGet/Set the state of the "Relax" checkbox.
<Garment_Maker>.outputType Integer default: 0 -- integer; Output_TypeGet/Set the output type radio buttons state. Possible values are:
0 - Arranged Panels
1 - Preserved Surface
2 - Flat Panels
<Garment_Maker>.figure UndefinedClassdefault: undefined -- nodeGet/Set the Figure object.
<Garment_Maker>.stretchMapping BooleanClass default: true -- boolean; Stretch_MappingGet/Set the state of the "Stretch Mapping Coordinates" checkbox.
<Garment_Maker>.striptexturescale Float default: 0.1 -- float; Stip_Texture_ScaleGet/Set the strip texture scale value.
<Garment_Maker>.stripwidth Float default: 0.5 -- float; Strip_WidthGet/Set the strip width value.
<Garment_Maker>.showMesh BooleanClass default: false -- boolean; Show_MeshGet/set whether to show the mesh.
<Garment_Maker>.showSeams BooleanClass default: true -- boolean; Show_SeamsGet/set whether to show the seams.
Interface: gmakerOpsMethods
<void>generateDescription()Generates a new MAXScript description of the currently selected object and outputs it to a new Scripting Editor window.
SAMPLE OUTPUT CAN LOOK LIKE:
$.modifiers[#garmentmaker].setDensity 0.364000
$.modifiers[#garmentmaker].setSeamTolerance 0.060000
$.modifiers[#garmentmaker].setPanelMatrix 1 (matrix3 [1.000000, 0.000000, 0.000000] [0.000000, 1.000000, 0.000000] [0.000000, 0.000000, 1.000000] [0.000000, 0.000000, 0.000000] )
$.modifiers[#garmentmaker].setFlatPanelMatrix 1 (matrix3 [1.000000, 0.000000, 0.000000] [0.000000, 1.000000, 0.000000] [0.000000, 0.000000, 1.000000] [0.000000, 0.000000, 0.000000] )
$.modifiers[#garmentmaker].setPanelParams 1 1.000000 0 0.001000 0 1
$.modifiers[#garmentmaker].meshIt()<void>setDensity <float>densitySets the cloth density.
<float>getDensity()Returns the cloth density.
<void>meshIT()Corresponds to pressing the "Mesh It!" button.
<void>meshItPreserve()Corresponds to pressing the "Mesh It and Preserve" button.
<void>setPanelParams<index>panel <float>density <integer>deform_type <float>curvature <integer>axis <integer>MatIDSets all parameters of the indexed panel to the specified values.
<integer>getPanelDeformType <index>panelReturns the deformation type of the indexed panel.
Possible values are:
0 - None
1 - Curved
<void>setPanelDeformType <index>panel <integer>deform_typeSets the deformation type of the indexed panel to the specified value.
Possible values are:
0 - None
1 - Curved
<float>getPanelDensity <index>panelReturns the density of the indexed panel.
<void>setPanelDensity <index>panel <float>densitySets the density of the indexed panel to the specified value.
<integer>getPanelMatID <index> panelReturns the Material ID of the indexed panel.
<void>setPanelMatID <index>panel <integer>MatIDSets the Material ID of the indexed panel to the specified ID.
<float>getPanelCurvature <index>panelReturns the Curvature of the indexed panel.
<void>setPanelCurvature <index>panel <float>curvatureSets the Curvature of the indexed panel to the specified value.
<integer>getPanelAxis <index>panelReturns the Axis of the indexed panel.
Possible values are:
0 - X-axis
1 - Y-axis
<void>setPanelAxis <index>panel <integer>axisSets the Axis of the indexed panel.
Possible values are:
0 - X-axis
1 - Y-axis
<index>getPanelFromSpline <index>splineReturns the index of the panel defined by the supplied indexed spline.
<matrix3>getPanelMatrix <index>panelReturns the matrix of the indexed panel.
<void>setPanelMatrix <index>panel <matrix3>matrixSets the matrix of the indexed panel to the supplied matrix3 value.
<matrix3>getFlatPanelMatrix <index>panelReturns the matrix of the indexed flat panel.
<void>setFlatPanelMatrix <index>panel <matrix3>matrixSets the matrix of the indexed flat panel to the supplied matrix3 value.
<void>setSeamParamsByIndex <index>seam <float>bend_angle <float>bend_stiffness <boolean>enabled <float>sewing_stiffnessSet all parameters of the indexed seam to the supplied values.
<void>ButtonCreateSeam()Corresponds to pressing the "Create Seam" button.
<void>selectSplines <bitArray>selSelects the splines specified by bits set in the supplied bitArray.
FOR EXAMPLE
theSpline = Donut()
addModifier theSpline (Garment_Maker())
select theSpline
subObjectLevel = 1--change to Spline SO mode
theSpline.Garment_Maker.selectSplines #{1}--select the outer spline
sleep 1--wait a second
theSpline.Garment_Maker.selectSplines #{2}--select the inner spline
sleep 1--wait another second
theSpline.Garment_Maker.selectSplines #{1,2}--select both splines<integer>createSeamFromSplines <index>spline1 <index>spline2 <integer>orientationCreates a seam from the supplied two indexed splines with the given orientation.
<string>makeMultiSegmentFromSplines<int array>indicesCorresponds to pressing the "Make MultiSegment" button for the indexed splines specified in the supplied array.
<float>getSeamTolerance()Returns the seam tolerance value.
<void>setSeamTolerance <float>toleranceSets the seam tolerance to the specified value.