GaussianSplat : GeometryClass

GaussianSplat - superclass: GeometryClass; super-superclass:node - classID: #(1805920376, 1403524741)

The GaussianSplat GeometryClass object represents a 3D Gaussian Splatting (3DGS) point cloud. Each point is a splat carrying position, scale, orientation, opacity, color and, optionally, spherical-harmonics data. The object can either reference an external .ply or .spz file, which is read again on every scene load instead of being saved into the scene, or hold point data embedded in the scene (for example, objects created by the PLY, SPZ and LCC importers). A Static/File Sequence mode can play back a numbered series of .ply files over time. Available in 3ds Max 2027.2 and higher.

In 3ds Max 2027.2, a Gaussian Splat object holds only point data embedded in the scene (for example, data created by the importers). Referencing an external file (.sourceFile and its load options) and File Sequence playback were added in 3ds Max 2027.3. Each property below notes the version it is available in.

The object appears in the Create panel > Geometry > Points category as Gaussian Splat.

Gaussian Splat is built on the same point-object base class as Editable Point. It also exposes the base class's display, rendering and Gaussian Splat properties; see Inherited properties below for how they differ from Editable Point.

Constructor

GaussianSplat...

When created interactively, the click-drag distance sets the size of the object's viewport icon (the inherited .iconSize property).

Properties

Parameters rollout

<GaussianSplat>.type     Integer    default: 0   --  integer

Gets/sets the playback mode, matching the Type drop-down list.

The value is forced back to 0 (Static) if File Sequence playback is disabled in this build, or if .sourceFile is an .spz file (sequence playback is .ply-only). A scene saved in File Sequence mode still loads when sequence playback is disabled, and drops back to Static.

Available in 3ds Max 2027.2 and higher. In 3ds Max 2027.2 only 0 (Static) has an effect: the File Sequence option is hidden in the UI, and setting the property to 1 does nothing. File Sequence playback is available in 3ds Max 2027.3 and higher.

File Sequence support can be turned off with the EnableFileSequence key in the [Features] section of a PointObject.ini file in the plugin's bin folder (for example C:\ProgramData\Autodesk\ApplicationPlugins\Advanced Modeling Tools for 3ds Max 2027\Contents\bin\PointObject.ini). The file is not installed with 3ds Max; without it, File Sequence support is on. See Editable_Point : GeometryClass for details.

<GaussianSplat>.sourceFile     String    default: ""   --  filename

Gets/sets the path of the Gaussian Splat point cloud file, matching the File field of the Parameters rollout. Supported formats are .ply and .spz.

Setting this property reloads the point data from the file, including when the object is not open in the Modify panel. When the property holds a path, the point data is not stored in the scene file; it is read from the file again when the scene is loaded. When the property is empty, the object keeps point data embedded in the scene (for example, data created by an importer). If the file is missing or cannot be read, the object contains no splats; no error dialog is shown.

NOTE

In the current version, loading through .sourceFile reads positions, DC color, opacity, scale and orientation only. Higher-order spherical-harmonics data (f_rest_* in a PLY file) is not loaded, so view-dependent color is lost. Importing the same file with importFile ... using:PLYImport does load the spherical harmonics. An imported object also keeps its file path in .sourceFile. If a load option of an imported object is then changed (for example .units), the file is reloaded through .sourceFile and its spherical-harmonics channels are dropped. The same happens when a scene containing an imported object is saved and reopened, because the point data is read again from the file on load.

The path is registered with Asset Tracking. In File Sequence mode the whole discovered file sequence is registered, not just the picked file.

Available in 3ds Max 2027.3 and higher.

<GaussianSplat>.preset     Integer    default: 1   --  integer

Gets/sets the producer preset used to interpret the file's data, matching the Preset drop-down list.

When you choose a preset in the UI, Up Axis is also set to that preset's default (-Y for WorldLabs, +Y for all others). Setting .preset from MAXScript does not change .upAxis; set both if needed.

Available in 3ds Max 2027.3 and higher.

<GaussianSplat>.upAxis     Integer    default: 0   --  integer

Gets/sets the up axis of the source data, which is converted to the 3ds Max Z-up convention on load. Matches the Up Axis drop-down list.

The -Y option is not offered in the UI for .spz files, and a stored -Y value is reset to +Y when an .spz file is selected.

Available in 3ds Max 2027.3 and higher.

<GaussianSplat>.units     Integer    default: 4   --  integer

Gets/sets the units the source file's data is expressed in, used to scale it into scene units. Matches the Units drop-down list. Values are the standard 3ds Max unit constants; the UI offers:

Available in 3ds Max 2027.3 and higher. MAXScript also accepts the other 3ds Max unit constants (2 = Miles, 3 = Millimeters, 6 = Kilometers), which the UI does not offer.

<GaussianSplat>.startFrame     Integer    default: 0   --  integer

Gets/sets the scene frame at which the first file of the sequence is shown, matching the Start Frame spinner. Only used when .type is 1 (File Sequence). The file shown at a given frame is frame - startFrame into the sequence, clamped to the sequence's length: frames before .startFrame show the first file and frames past the end show the last file. Negative values are allowed and shift the sequence earlier. The UI spinner range is -999999 to 999999. Available in 3ds Max 2027.3 and higher.

A sequence is discovered from .sourceFile by its trailing frame number: other .ply files in the same folder with the same name prefix and a numeric suffix belong to the same sequence.

Inherited properties

Gaussian Splat also exposes the properties of the shared point-object parameter block, which are documented on the Editable Point page. The availability notes on that page also apply here: the base properties are available in 3ds Max 2027.2, and the viewport/render limit, static instancing and file-loading properties were added in 3ds Max 2027.3. The differences from Editable Point are:

FOR EXAMPLE

   -- Path to the first file of a numbered .ply sequence (scan_0001.ply, scan_0002.ply, ...)
   -- Replace it with a file of your own
   f = @"C:\Splats\scan_0001.ply"
   doesFileExist f

   -- Create a Gaussian Splat object that references the file
   gs = GaussianSplat name:"SplatExample"
   gs.preset = 1   -- Postshot
   gs.upAxis = 0   -- +Y (set explicitly: setting .preset from MAXScript does not change .upAxis)
   gs.units = 5    -- Meters
   gs.sourceFile = f

   -- Check that the file loaded, on a collapsed copy
   chk = convertTo (copy gs) Editable_Point
   chk.GetPointCount()
   delete chk

   -- Play back the numbered sequence, starting at frame 10
   gs.type = 1
   gs.startFrame = 10
   gs.type

OUTPUT:

   true    -- the file exists
   20997   -- the number of splats in the file (depends on your file)
   1       -- still File Sequence; it is reset to 0 (Static) if sequence playback is unavailable or the file is .spz

Gaussian Splat has no PointObject interface, so the example converts a copy to Editable Point to count the loaded splats. Requires 3ds Max 2027.3 or higher (.sourceFile, .preset, .upAxis, .units and .startFrame).