PointFromMesh - superclass: GeometryClass; super-superclass:node - classID: #(1059744785, 461258965)The Point from Mesh object generates a live point cloud from the geometry of another scene node. It is found in the Points category of the Create panel. Available in 3ds Max 2027.3 and higher.
The source node is referenced, not modified: the object evaluates the source's full modifier stack and converts the result with the same engine as the Turn to Point modifier, and updates whenever the source changes. The conversion properties below match the Turn to Point modifier's properties of the same names. With no source assigned, or if the source node is deleted, the object produces no points and is displayed only as its icon.
Point from Mesh is built on the same point-cloud base as Editable Point, so its output can be processed by the Point modifiers and it can be collapsed to an Editable_Point object (for example with convertTo <node> Editable_Point).
Constructor
PointFromMesh...FOR EXAMPLE
t = Teapot radius:30 p = PointFromMesh sourceNode:t conversionType:3 density:0.5 densityUnits:4
Properties
<PointFromMesh>.sourceNode UndefinedClass default: undefined -- nodeGets/sets the scene node whose geometry is converted to points. This is the node chosen with the Pick button. Set it to undefined to clear the source. A node that depends on this object (for example the Point from Mesh node itself) cannot be picked in the UI.
<PointFromMesh>.pointSpaceMode Integer default: 0 -- integerGets/sets how the generated points are placed relative to the source. Possible values are:
<PointFromMesh>.conversionType Integer default: 0 -- integerGets/sets how points are generated from the source geometry. Possible values are:
.spacing..count points are scattered over the surface of the source..density points per square .densityUnits.<PointFromMesh>.spacing Float default: 5.0 -- animatable; worldunitsGets/sets the distance between points. Used only when .conversionType is 1 (Fill Volume). Range 0.001 to 9999999.9.
<PointFromMesh>.count Integer default: 100 -- animatable; integerGets/sets the total number of points to scatter over the surface. Used only when .conversionType is 2 (Surface (Count)). Range 0 to 99999999.
<PointFromMesh>.densityUnits Integer default: 4 -- integerGets/sets the unit of area that .density is measured in. Used only when .conversionType is 3 (Surface (Density)). Possible values are:
These are the stored integer values. The drop-down list in the UI shows them in a different order (Millimeters, Centimeters, Inches, Feet, Meters, Kilometers, Miles).
<PointFromMesh>.density Float default: 1.0 -- animatable; floatGets/sets the number of points per square unit of surface area, in the unit set by .densityUnits. Used only when .conversionType is 3 (Surface (Density)). Range 0.0 to 99999999.9.
<PointFromMesh>.maxPoints Integer default: 100000 -- animatable; integerGets/sets the maximum number of points that can be generated. Used when .conversionType is 1 (Fill Volume) or 3 (Surface (Density)). Range 1 to 999999999.
<PointFromMesh>.seed Integer default: 12345 -- integerGets/sets the random seed used for surface scattering and jitter. It has no effect when .conversionType is 0 (Vertices to Points) and .useJitter is off. Range 0 to 9999999.
<PointFromMesh>.createOrientation BooleanClass default: false -- booleanSpecifies whether an orientation channel (Autodesk 3dsmax InstanceNormal) is created for the generated points, so that instanced geometry can follow the source's surface direction.
<PointFromMesh>.useJitter BooleanClass default: false -- booleanSpecifies whether a random offset is added to each generated point's position. The amount is set by .jitterX, .jitterY and .jitterZ.
<PointFromMesh>.jitterX Float default: 1.0 -- animatable; floatGets/sets the maximum random offset along X. When .jitterLock is on, this value is used for all three axes. Range 0.0 to 9999999.9.
<PointFromMesh>.jitterY Float default: 1.0 -- animatable; floatGets/sets the maximum random offset along Y. Ignored while .jitterLock is on. Range 0.0 to 9999999.9.
<PointFromMesh>.jitterZ Float default: 1.0 -- animatable; floatGets/sets the maximum random offset along Z. Ignored while .jitterLock is on. Range 0.0 to 9999999.9.
<PointFromMesh>.jitterLock BooleanClass default: true -- booleanSpecifies whether .jitterX is used for all three axes. When off, .jitterY and .jitterZ set the Y and Z amounts separately.
<PointFromMesh>.constrainToVolume BooleanClass default: false -- booleanSpecifies whether jittered points are kept inside the source volume. Used only when .conversionType is 1 (Fill Volume) and .useJitter is on.
These properties are used only when .conversionType is 2 (Surface (Count)) or 3 (Surface (Density)).
<PointFromMesh>.colorFromSurface BooleanClass default: false -- booleanSpecifies whether the generated points take values sampled from the source surface. When on, up to three maps can each be sampled into a named point channel using the three sets of properties below.
<PointFromMesh>.colorChannelName UndefinedClass default: undefined -- string
<PointFromMesh>.colorChannelName2 UndefinedClass default: undefined -- string
<PointFromMesh>.colorChannelName3 UndefinedClass default: undefined -- stringGet/set the names of the point channels that surface colors 1, 2 and 3 are written to. A color is sampled only when both its channel name and its map are set.
<PointFromMesh>.colorMapChannel Integer default: 1 -- integer
<PointFromMesh>.colorMapChannel2 Integer default: 1 -- integer
<PointFromMesh>.colorMapChannel3 Integer default: 1 -- integerGet/set the source UV (map) channels used to look up surface colors 1, 2 and 3. Range 1 to 99.
<PointFromMesh>.colorChannelMap UndefinedClass default: undefined -- texturemap
<PointFromMesh>.colorChannelMap2 UndefinedClass default: undefined -- texturemap
<PointFromMesh>.colorChannelMap3 UndefinedClass default: undefined -- texturemapGet/set the texture maps sampled for surface colors 1, 2 and 3.
<PointFromMesh>.createNamedSel BooleanClass default: false -- booleanSpecifies whether all generated points are added to a named point selection whose name is set by .NamedSel.
<PointFromMesh>.NamedSel UndefinedClass default: undefined -- stringGets/sets the name of the named selection created when .createNamedSel is on.
Point from Mesh also exposes the properties of the base Editable Point parameter block (display, soft selection, Gaussian splat and point file properties such as .displayPoints, .displayLimit, .splatsColor and .useSoftSelection). These are documented on the Editable_Point : GeometryClass page and are not repeated here.
The Editable Point function-published interfaces (for example the PointObject interface) are not available on a Point from Mesh object: showInterfaces returns nothing for it. To use them, collapse the object to Editable_Point first.