Pricing

uBricks

MAXScript

The uBricks class, its 75 properties in panel order, and the uBricksTools functions that report why a wall is empty and how renderers took it.

Everything on the uBricks panel can be set from MAXScript, plus two renderer settings that have no control. With a wall selected, run showProperties $ in the MAXScript Listener to list its properties, and showInterface uBricksTools to list the status and diagnostic functions. The MAXScript reference lists the names every Verstice plugin answers to.

The object has 75 properties, all read and written by name (b.seed = 7), listed here in panel order.

  • Drop-down lists are integers; each property lists its values, starting from 0.
  • Lengths are in system units, whatever the panel displays.
  • Nothing is animatable, from script or from the panel.

MAXScript works without a license: uBricks() still builds an object and every property can be set while the panel is greyed out. Of the uBricksTools functions, only createBricks and instancingCallStats check the license. uBricks has no free edition. Without a license, createBricks starts nothing and says so on the status line and in the 3ds Max log, never in a window. In a session without a user interface, such as 3dsmaxbatch, createBricks starts nothing either, and an unlicensed call's text goes to the debug output only.

uBricks : GeometryClass

b = uBricks()
b.walls = #($Wall001)
b.sources = #($BrickFull, $BrickHalf)
b.source_states = #(2, 3)    -- Full, Half

The object bricks the nodes in walls with the nodes in sources. Until it has a wall and a Full row it lays nothing, and uBricksTools.brickStatus says why. Its class ID, uBricks.classID, is #(1536042963, 1276769954).

uBricks Rollout

<uBricks>.brick_length Float default: 21.5 range: 0.001 to 1,000,000 - Brick length.

<uBricks>.brick_height Float default: 6.5 range: 0.001 to 1,000,000 - Brick height.

<uBricks>.brick_depth Float default: 10.25 range: 0.001 to 1,000,000 - Brick depth.

<uBricks>.gap_horizontal Float default: 1.0 range: 0 to 1,000,000 - Head joint.

<uBricks>.gap_bed Float default: 1.0 range: 0 to 1,000,000 - Bed joint.

<uBricks>.seed Integer default: 12345 range: 0 to 999,999,999 - Seed.

Walls Rollout

<uBricks>.walls Array default: #() - the Walls list, Add and Remove. An array of nodes: #($Wall001, $Wall002). Assigning a uBricks object, or a node that leads back to this one, is refused silently: the assignment doesn't take. The same applies to every node list below.

Brick Sources Rollout

<uBricks>.sources Array default: #() - the Brick sources list. An array of nodes.

Every other source_ property is an array with one entry per row, in the order of sources. An array shorter than sources is fine: a missing entry reads as the default shown, so a new row is Full with a weight of 1.0.

<uBricks>.source_states Integer array default: 2 per row range: 0 to 3 - State. A value outside the range reads as Full:

  • 0 Off
  • 1 Empty
  • 2 Full
  • 3 Half

<uBricks>.source_weights Float array default: 1.0 per row - Weight; the panel runs 0 to 1,000. A weight below 0, which only a script can set, counts as 0.

<uBricks>.source_offsets Point3 array default: [0, 0, 0] per row - Offset: X along the course, Y out of the wall, Z up. The panel runs ±1,000,000,000.

<uBricks>.source_scales Point3 array default: [1, 1, 1] per row - Scale, a factor on the brick's axes, as uScatter's source_scales is: [1, 1, 0.5] is half height. The panel shows it as a percentage, 100 for 1, from 0.01 to 1,000 %.

<uBricks>.source_rotations Point3 array default: [0, 0, 0] per row - Rotation, in degrees; the panel runs −360 to 360.

<uBricks>.source_preserve Integer array default: 0 per row - bit flags. Bit value 1 is Keep node rotation; bit value 2 keeps the node's scale and has no checkbox.

<uBricks>.source_styles Integer array default: -1 per row - Override display, with its Display and Style: a display_mode value, or -1 to follow the Display rollout.

<uBricks>.source_cloud_points Integer array default: -1 per row range: 1 to 100,000 - Points in Override display.

<uBricks>.source_vertex_points Integer array default: -1 per row range: 1 to 100,000 - Vertices.

<uBricks>.source_hull_detail Integer array default: -1 per row range: 4 to 100,000 - Hull detail.

<uBricks>.source_wire_budget Integer array default: -1 per row range: 16 to 200,000 - Wire faces.

<uBricks>.source_prim_segments Integer array default: -1 per row range: 3 to 64 - Segments.

<uBricks>.source_voxel_detail Integer array default: -1 per row range: 2 to 256 - Voxels.

<uBricks>.source_voxel_reduce Float array default: -1 per row range: 1 to 100 - Reduce %.

<uBricks>.source_voxel_faceted Integer array default: -1 per row - Faceted:

  • -1 follows the Display rollout
  • 0 off
  • 1 on

A per-row detail value of -1, or anything below its range, follows the Display rollout, and the detail values are read only for a row whose source_styles is 0 or more. A value outside its range, per row or on the Display rollout, is clamped when the wall is drawn.

<uBricks>.header_halves Boolean default: false - Rotate fulls as halves.

Fitting Rollout

<uBricks>.gap_adjust Float default: 0.5 range: 0 to 1,000,000 - Head joint in Joint adjust.

<uBricks>.bed_adjust Float default: 0.5 range: 0 to 1,000,000 - Bed joint in Joint adjust.

<uBricks>.stretch_min Float default: 0.9 range: 0.01 to 1.0 - Length minimum in Stretch limits (min / max), a scale factor like the five below.

<uBricks>.stretch_max Float default: 1.1 range: 1.0 to 100.0 - Length maximum.

<uBricks>.stretch_height_min Float default: 0.9 range: 0.01 to 1.0 - Height minimum.

<uBricks>.stretch_height_max Float default: 1.1 range: 1.0 to 100.0 - Height maximum.

<uBricks>.stretch_depth_min Float default: 1.0 range: 0.01 to 1.0 - Depth minimum.

<uBricks>.stretch_depth_max Float default: 1.0 range: 1.0 to 100.0 - Depth maximum.

<uBricks>.fit_courses Boolean default: true - Fit rows to height.

<uBricks>.fit_openings Boolean default: true - Fit rows to openings.

<uBricks>.bond_offset Float default: 0.5 range: 0 to 1 - Bond offset. 0 is stack bond, and every value above 0 gives the same running bond.

<uBricks>.short_fill Integer default: 0 range: 0 to 2 - Short fill:

  • 0 Half-brick + joint
  • 1 Widen joint
  • 2 Leave gap

<uBricks>.coverage_min Float default: 0.5 range: 0 to 1 - Min piece, a fraction of a half brick.

Corners Rollout

<uBricks>.corner_angle Float default: 30.0 range: 0 to 90 - Corner angle, in degrees.

<uBricks>.interlock_tolerance Float default: 15.0 range: 0 to 45 - Interlock tol, in degrees.

<uBricks>.depth_offset Float default: 0.0 range: −1,000,000 to 1,000,000 - Depth offset.

<uBricks>.flip_normals Boolean default: false - Flip wall side.

Randomize Rollout

<uBricks>.random_flip Boolean default: true - Random flips.

<uBricks>.depth_jitter Float default: 0.0 range: 0 to 1,000,000 - Depth jitter.

<uBricks>.rotation_jitter Point3 default: [0, 0, 0] - Rotation jitter (deg): X, Y, Z. The panel runs −180 to 180.

<uBricks>.damage_percent Float default: 0.0 range: 0 to 100 - Damaged % in Weathering.

<uBricks>.damage_mode Integer default: 0 range: 0 to 1 - Damage:

  • 0 Recess into wall
  • 1 Remove brick

<uBricks>.damage_recess Float default: 0.6 range: 0 to 1 - Recess depth, a fraction of Brick depth.

<uBricks>.position_jitter Point3 default: [0, 0, 0] - Position jitter: X, Y, Z. The panel runs 0 to 1,000,000,000.

Display Rollout

<uBricks>.display_percent Float default: 100.0 range: 0 to 100 - Display % in Limits.

<uBricks>.display_max Integer default: 20000 range: 0 to 10,000,000 - Display max. 0 is no cap.

<uBricks>.max_display_points Integer default: 1000000 range: 1 to 50,000,000 - Max points.

<uBricks>.max_instances Integer default: 2000000 range: 0 to 2,000,000,000 - Max inst. 0 is unlimited. It caps the layout, so it also limits the render.

<uBricks>.display_mode Integer default: 0 range: 0 to 15 - Draw as and Style in Instances, as one value. The same values go in source_styles:

  • 0 Mesh › Box
  • 1 Mesh › Full
  • 2 Mesh › Convex hull
  • 3 Wire › Box
  • 4 Points › Pivot
  • 5 None
  • 6 Points › Scatter
  • 7 Points › Vertices
  • 8 Wire › Simplified
  • 9 Mesh › Plane
  • 10 Triangle: drawn, but not offered on the panel
  • 11 Mesh › Arrow
  • 12 Mesh › Pyramid
  • 13 Mesh › Sphere
  • 14 Mesh › Cylinder
  • 15 Mesh › Volume

A value outside 0 to 15 draws as Mesh › Box, and uBricks posts a notice once for that value.

<uBricks>.cloud_points Integer default: 200 range: 1 to 100,000 - Points.

<uBricks>.cloud_seed Integer default: 0 range: 0 to 999,999,999 - Seed in Instances.

<uBricks>.vertex_points Integer default: 600 range: 1 to 100,000 - Vertices.

<uBricks>.hull_detail Integer default: 600 range: 4 to 100,000 - Hull detail.

<uBricks>.wire_budget Integer default: 800 range: 16 to 200,000 - Wire faces.

<uBricks>.prim_segments Integer default: 16 range: 3 to 64 - Segments.

<uBricks>.voxel_detail Integer default: 64 range: 2 to 256 - Voxels.

<uBricks>.voxel_reduce Float default: 25.0 range: 1 to 100 - Reduce %.

<uBricks>.voxel_faceted Boolean default: true - Faceted.

<uBricks>.point_size Float default: 5.0 range: 0 to 1,000,000 - Point size: scene units in World mode, pixels in Pixels mode.

<uBricks>.point_size_mode Integer default: 2 - Size mode:

  • 0 World
  • 2 Pixels

<uBricks>.point_color_mode Integer default: 0 range: 0 to 2 - Colour for points and wire:

  • 0 Object
  • 1 Source
  • 2 Material

<uBricks>.mesh_color_mode Integer default: 2 range: 0 to 2 - Colour for mesh styles, with the same values.

<uBricks>.display_darken Float default: 0.0 range: 0 to 1 - Darken.

<uBricks>.icon_size Float default: 20.0 range: 0.001 to 1,000,000 - Icon size.

<uBricks>.icon_always Boolean default: false - Always show.

Script-Only and Legacy Properties

These six have no control of their own on the panel. The first two tune what a renderer receives rather than the wall itself.

<uBricks>.render_instancing_mode Integer default: 3 range: 0 to 3 - which instancing interfaces the object offers renderers. Change it only when a renderer mishandles one of them:

  • 0 Neither: every renderer gets the baked mesh
  • 1 The Autodesk render-time instancing interface only
  • 2 The particle interface only
  • 3 Both

With 2 or 3, uBricks also reports itself to 3ds Max as a particle system, but only while the current renderer's class name contains "Redshift".

An object saved before this property existed loads with 3 (and render_mesh_cap 0). One saved by a build from before 18 August 2026 with 1 also loads with 3; a stored 0 or 2 is kept.

<uBricks>.render_mesh_cap Integer default: 0 range: 0 to 2,000,000,000 - the most bricks the baked mesh may hold; 0 is no cap. Over it, the bake is refused and the wall renders as nothing. A fixed ceiling of 20,000,000 faces, or 60,000,000 vertices, refuses the bake whatever the cap. A refused bake posts its notice once, and again only after a bake in between that wasn't refused; a wall with no bricks posts nothing.

<uBricks>.full_sources Array default: #() - shown as Full rows after the sources rows.

<uBricks>.full_weights Float array default: #() - the weights of those rows.

<uBricks>.half_sources Array default: #() - shown as Half rows after them.

<uBricks>.half_weights Float array default: #() - the weights of those rows.

Info

The four lists from earlier versions still work, so a scene or script made before the current panel lays exactly the wall it always did. A script may set them, sources, or both. The first time someone edits one of those rows in the panel, or adds, removes or reorders a row, the panel moves them all into sources and its arrays, keeping their order and weights, and empties the four.

uBricksTools Interface

uBricksTools is a global interface for reading a wall's status and diagnostics. It is named uBricksTools, not uBricks, because uBricks is the class. Call a function as uBricksTools.brickStatus $. Released builds have exactly these four; others exist only in development builds.

FunctionParametersDescription
createBricks
-
Switches to the Create panel and starts creating a uBricks object, as the Create uBricks toolbar button does. Without a license, starts nothing, and the status line says Creating and editing uBricks objects needs a license or a 14-day trial that is active on this computer., logged as "uBricks - License Required". Returns nothing.
brickStatus
<node>
Builds the wall at the current time, then returns the sentence that explains why it produced the bricks it did: the status line under the Walls list, listed under The Wall Produced No Bricks. Returns "" when the wall is fine or the node isn't a uBricks object. Works without a license.
materialNotes
-
Returns uBricks' recent notices as an array of strings, oldest first, up to 256. Nothing else in 3ds Max shows them. Works without a license.
instancingCallStats
<node>
Returns 8 numbers (below): how the object offers instances, and how many times renderers called it through each interface. Returns #() without a license, or when the node isn't a uBricks object.

uBricks posts four notices: a refused render bake, a display_mode outside 0 to 15, and two from the Volume style. Troubleshooting quotes each one with its fix.

uBricksTools.instancingCallStats Values

Read it after a render; reading it doesn't change the counts. Indices count from 1.

IndexMeaning
1
render_instancing_mode
2
1 if the Autodesk render-time instancing interface is offered, else 0
3
1 if the particle interface is offered, else 0
4
Calls to UpdateInstanceData through the render-time instancing interface
5
Instance targets fetched through the render-time instancing interface
6
Calls to UpdateParticles through the particle interface
7
Calls to GetParticleShapeByIndex
8
Calls to GetParticleTMByIndex

A positive count means a renderer asked this object for instances through that interface. A zero only means this object wasn't asked: some renderers work on a copy of the object, and the copy's counters move instead.

Example Scripts

Build a wall from two brick meshes weighted three to one, with headers in the half cells, and print its status:

-- $Wall, $BrickA and $BrickB are objects already in the scene
b = uBricks()
b.walls = #($Wall)
b.sources = #($BrickA, $BrickB)
b.source_states = #(2, 2)       -- both Full
b.source_weights = #(3.0, 1.0)
b.header_halves = true
b.seed = 7
format "status: %\n" (uBricksTools.brickStatus b)  -- "" when the wall built

Check the selected wall, and print any notices:

s = uBricksTools.brickStatus $
if s == "" then print "wall OK" else print s
for n in uBricksTools.materialNotes() do print n

After a render, check whether the renderer took the instances:

st = uBricksTools.instancingCallStats $
if st.count == 8 do (
    format "mode % · RTI calls % · particle calls %\n" st[1] st[4] st[6]
)