PointDisplayMod - superclass: modifier; super-superclass:MAXWrapper - classID: #(722949278L, 1673793298L)The Point Display And Rendering modifier applies display and rendering settings to the point object below it in the modifier stack. You can place it at the top of the stack to set these options once, instead of setting them on each point editing modifier. It changes only display and rendering settings, never the point data. Its defaults match those of the point object, so a newly applied modifier starts in the same state as the object. The modifier works on point objects only, and appears in the Points category of the modifier list.
Available in 3ds Max 2027.3 and higher.
PointDisplayMod...<pointdisplaymod>.displayIcon BooleanClass default: true -- booleanSpecifies whether the point object's icon is drawn in the viewport (the Display Icon checkbox).
<pointdisplaymod>.iconSize Float default: 10.0 -- worldUnitsGets/sets the size of the point object's icon, in world units.
<pointdisplaymod>.displayPoints BooleanClass default: true -- booleanSpecifies whether the points are drawn in the viewport (the Display Points checkbox).
<pointdisplaymod>.pointSize Float default: 5.0 -- floatGets/sets the viewport display size of the points, in the range 0.0 to 999.9.
<pointdisplaymod>.viewportLimitEnabled BooleanClass default: false -- booleanSpecifies whether only a percentage of the points is shown in the viewport (the Viewport Limit checkbox).
<pointdisplaymod>.viewportLimitPercent Float default: 100.0 -- floatGets/sets the percentage of points shown in the viewport when viewportLimitEnabled is true, in the range 0.0 to 100.0.
<pointdisplaymod>.renderLimitEnabled BooleanClass default: false -- booleanSpecifies whether only a percentage of the points is rendered (the Render Limit checkbox).
<pointdisplaymod>.renderLimitPercent Float default: 100.0 -- floatGets/sets the percentage of points rendered when renderLimitEnabled is true, in the range 0.0 to 100.0.
<pointdisplaymod>.instanceDisplay BooleanClass default: true -- booleanSpecifies whether instances on the points (for example, from a Point Instance modifier lower in the stack) are drawn in the viewport (the Instance Display group).
<pointdisplaymod>.instanceDisplayType Integer default: 0 -- integerGets/sets how instances are drawn in the viewport, where:
<pointdisplaymod>.displayLimit Integer default: 25000 -- integerGets/sets the maximum number of instances drawn in the viewport, in the range 0 to 999999999 (the Display Limit setting).
FOR EXAMPLE
-- A point sphere with teapots instanced on its 2000 points t = Teapot radius:2 pos:[-150,0,0] name:"PDTeapot" ps = PointSphere radius:50 count:2000 name:"PDTarget" pim = PointInstanceMod() addModifier ps pim idx = 0 pim.AddNode t &idx pim.SetNodeInstanceTypeByIndex false idx -- Add Point Display And Rendering at the top of the stack to control display and rendering pdm = PointDisplayMod() addModifier ps pdm pdm.pointSize = 2.0 pdm.instanceDisplayType = 1 -- Mesh pdm.displayLimit = 500 -- draw at most 500 instances in the viewport pdm.viewportLimitEnabled = true pdm.viewportLimitPercent = 25.0 -- show 25% of the points in the viewport pdm.renderLimitEnabled = true pdm.renderLimitPercent = 50.0 -- render 50% of the points -- Check on a collapsed copy: the points are unchanged, the settings are applied chk = convertTo (copy ps) Editable_Point chk.GetPointCount() #(chk.pointSize, chk.instanceDisplayType, chk.displayLimit, chk.viewportLimitEnabled, chk.viewportLimitPercent, chk.renderLimitEnabled, chk.renderLimitPercent) delete chkOUTPUT:
2000 -- the points are not changed by the modifier #(2.0, 1, 500, true, 25.0, true, 50.0) -- the display and rendering settings reach the point objectThe teapot entry is switched to a dynamic instance (
SetNodeInstanceTypeByIndex false idx), so no hidden static copy of the teapot is created. The viewport and render limits pick a stable pseudo-random subset of the points; the points that are not shown are still part of the object.