DeletePointMod - superclass: modifier; super-superclass:MAXWrapper - classID: #(2093968826, 2607989182L)The Delete Points modifier removes a targeted set of points from a point object (Editable Point or 3D Gaussian Splat object), or disables them so that they can be re-enabled higher in the modifier stack. The targeted points can come from the incoming selection, the soft selection, a named selection, a point color match, or all points. It appears in the Points modifier category as Delete Points.
Available in 3ds Max 2027.3 and higher.
DeletePointMod...<DeletePointMod>.targeting Integer default: 0 -- integerGets/sets which points the modifier acts on. Corresponds to the drop-down list in the Targeting group.
softThresholdnamedSelectiontargetColor within tolerance<DeletePointMod>.softThreshold Float default: 0.5 -- animatable; floatGets/sets the minimum soft selection weight a point must have to be targeted when targeting is 2 (Soft Selected Points). Range: 0.0 to 1.0. Corresponds to the Threshold spinner.
<DeletePointMod>.namedSelection String default: "" -- stringGets/sets the name of the named selection whose points are targeted when targeting is 5 (Named Selection). If no named selection with this name exists, no points are targeted. Corresponds to the NSel drop-down list.
<DeletePointMod>.targetColor Color default: (color 0 0 0) -- animatable; RGB colorGets/sets the color that points are matched against when targeting is 6 (Point Color). Corresponds to the Color swatch.
<DeletePointMod>.tolerance Float default: 10.0 -- animatable; floatGets/sets how closely a point's color must match targetColor to be targeted, as a percentage, when targeting is 6 (Point Color). Range: 0.0 to 100.0. Corresponds to the Tolerance spinner.
<DeletePointMod>.hue BooleanClass default: true -- booleanSpecifies whether the hue component is compared when matching point colors against targetColor. Corresponds to the H checkbox.
<DeletePointMod>.saturation BooleanClass default: false -- booleanSpecifies whether the saturation component is compared when matching point colors against targetColor. Corresponds to the S checkbox.
<DeletePointMod>.value BooleanClass default: false -- booleanSpecifies whether the value (brightness) component is compared when matching point colors against targetColor. Corresponds to the V checkbox.
<DeletePointMod>.mode Integer default: 0 -- integerGets/sets what happens to the targeted points. Corresponds to the Mode drop-down list.
PointDisable channel, so they can be re-enabled higher in the modifier stack. Disabled points are not counted by GetPointCount() or returned by GetActiveIds, but are still returned by GetAllIds.FOR EXAMPLE
-- Create an Editable Point object with 100 points and select the first 25 -- (point IDs are 0-based) ep = convertTo (PointSphere radius:50 count:100) Editable_Point ids = for i = 0 to 24 collect i ep.SelectIds ids true -- Add a Delete Points modifier that deletes the selected points dm = DeletePointMod() dm.targeting = 1 -- Selected Points dm.mode = 0 -- Delete addModifier ep dm -- Check the result on a collapsed copy: 75 points remain chk = convertTo (copy ep) Editable_Point chk.GetPointCount() allIds = #() chk.GetAllIds &allIds allIds.count -- Switch to Disable: the points are kept but flagged as disabled dm.mode = 1 chk2 = convertTo (copy ep) Editable_Point chk2.GetPointCount() allIds = #() chk2.GetAllIds &allIds allIds.countOUTPUT:
75 -- Delete: GetPointCount() 75 -- Delete: all point IDs 75 -- Disable: GetPointCount() counts only active points 100 -- Disable: all point IDs, including the 25 disabled points