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.), 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. says why. Its class ID, uBricks., is #(1536042963, 1276769954).
uBricks Rollout
<uBricks>. Float default: 21.5 range: 0.001 to 1,000,000 - Brick length.
<uBricks>. Float default: 6.5 range: 0.001 to 1,000,000 - Brick height.
<uBricks>. Float default: 10.25 range: 0.001 to 1,000,000 - Brick depth.
<uBricks>. Float default: 1.0 range: 0 to 1,000,000 - Head joint.
<uBricks>. Float default: 1.0 range: 0 to 1,000,000 - Bed joint.
<uBricks>. Integer default: 12345 range: 0 to 999,999,999 - Seed.
Walls Rollout
<uBricks>. 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>. 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..
<uBricks>. Integer array default: 2 per row range: 0 to 3 - State. A value outside the range reads as Full:
0Off1Empty2Full3Half
<uBricks>. 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>. 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>. 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. is half height. The panel shows it as a percentage, 100 for 1, from 0.01 to 1,000 %.
<uBricks>. Point3 array default: [0, 0, 0] per row - Rotation, in degrees; the panel runs −360 to 360.
<uBricks>. 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>. 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>. Integer array default: -1 per row range: 1 to 100,000 - Points in Override display.
<uBricks>. Integer array default: -1 per row range: 1 to 100,000 - Vertices.
<uBricks>. Integer array default: -1 per row range: 4 to 100,000 - Hull detail.
<uBricks>. Integer array default: -1 per row range: 16 to 200,000 - Wire faces.
<uBricks>. Integer array default: -1 per row range: 3 to 64 - Segments.
<uBricks>. Integer array default: -1 per row range: 2 to 256 - Voxels.
<uBricks>. Float array default: -1 per row range: 1 to 100 - Reduce %.
<uBricks>. Integer array default: -1 per row - Faceted:
-1follows the Display rollout0off1on
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>. Boolean default: false - Rotate fulls as halves.
Fitting Rollout
<uBricks>. Float default: 0.5 range: 0 to 1,000,000 - Head joint in Joint adjust.
<uBricks>. Float default: 0.5 range: 0 to 1,000,000 - Bed joint in Joint adjust.
<uBricks>. 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>. Float default: 1.1 range: 1.0 to 100.0 - Length maximum.
<uBricks>. Float default: 0.9 range: 0.01 to 1.0 - Height minimum.
<uBricks>. Float default: 1.1 range: 1.0 to 100.0 - Height maximum.
<uBricks>. Float default: 1.0 range: 0.01 to 1.0 - Depth minimum.
<uBricks>. Float default: 1.0 range: 1.0 to 100.0 - Depth maximum.
<uBricks>. Boolean default: true - Fit rows to height.
<uBricks>. Boolean default: true - Fit rows to openings.
<uBricks>. 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>. Integer default: 0 range: 0 to 2 - Short fill:
0Half-brick + joint1Widen joint2Leave gap
<uBricks>. Float default: 0.5 range: 0 to 1 - Min piece, a fraction of a half brick.
Corners Rollout
<uBricks>. Float default: 30.0 range: 0 to 90 - Corner angle, in degrees.
<uBricks>. Float default: 15.0 range: 0 to 45 - Interlock tol, in degrees.
<uBricks>. Float default: 0.0 range: −1,000,000 to 1,000,000 - Depth offset.
<uBricks>. Boolean default: false - Flip wall side.
Randomize Rollout
<uBricks>. Boolean default: true - Random flips.
<uBricks>. Float default: 0.0 range: 0 to 1,000,000 - Depth jitter.
<uBricks>. Point3 default: [0, 0, 0] - Rotation jitter (deg): X, Y, Z. The panel runs −180 to 180.
<uBricks>. Float default: 0.0 range: 0 to 100 - Damaged % in Weathering.
<uBricks>. Integer default: 0 range: 0 to 1 - Damage:
0Recess into wall1Remove brick
<uBricks>. Float default: 0.6 range: 0 to 1 - Recess depth, a fraction of Brick depth.
<uBricks>. Point3 default: [0, 0, 0] - Position jitter: X, Y, Z. The panel runs 0 to 1,000,000,000.
Display Rollout
<uBricks>. Float default: 100.0 range: 0 to 100 - Display % in Limits.
<uBricks>. Integer default: 20000 range: 0 to 10,000,000 - Display max. 0 is no cap.
<uBricks>. Integer default: 1000000 range: 1 to 50,000,000 - Max points.
<uBricks>. 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>. Integer default: 0 range: 0 to 15 - Draw as and Style in Instances, as one value. The same values go in source_styles:
0Mesh › Box1Mesh › Full2Mesh › Convex hull3Wire › Box4Points › Pivot5None6Points › Scatter7Points › Vertices8Wire › Simplified9Mesh › Plane10Triangle: drawn, but not offered on the panel11Mesh › Arrow12Mesh › Pyramid13Mesh › Sphere14Mesh › Cylinder15Mesh › Volume
A value outside 0 to 15 draws as Mesh › Box, and uBricks posts a notice once for that value.
<uBricks>. Integer default: 200 range: 1 to 100,000 - Points.
<uBricks>. Integer default: 0 range: 0 to 999,999,999 - Seed in Instances.
<uBricks>. Integer default: 600 range: 1 to 100,000 - Vertices.
<uBricks>. Integer default: 600 range: 4 to 100,000 - Hull detail.
<uBricks>. Integer default: 800 range: 16 to 200,000 - Wire faces.
<uBricks>. Integer default: 16 range: 3 to 64 - Segments.
<uBricks>. Integer default: 64 range: 2 to 256 - Voxels.
<uBricks>. Float default: 25.0 range: 1 to 100 - Reduce %.
<uBricks>. Boolean default: true - Faceted.
<uBricks>. Float default: 5.0 range: 0 to 1,000,000 - Point size: scene units in World mode, pixels in Pixels mode.
<uBricks>. Integer default: 2 - Size mode:
0World2Pixels
<uBricks>. Integer default: 0 range: 0 to 2 - Colour for points and wire:
0Object1Source2Material
<uBricks>. Integer default: 2 range: 0 to 2 - Colour for mesh styles, with the same values.
<uBricks>. Float default: 0.0 range: 0 to 1 - Darken.
<uBricks>. Float default: 20.0 range: 0.001 to 1,000,000 - Icon size.
<uBricks>. 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>. Integer default: 3 range: 0 to 3 - which instancing interfaces the object offers renderers. Change it only when a renderer mishandles one of them:
0Neither: every renderer gets the baked mesh1The Autodesk render-time instancing interface only2The particle interface only3Both
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>. 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>. Array default: #() - shown as Full rows after the sources rows.
<uBricks>. Float array default: #() - the weights of those rows.
<uBricks>. Array default: #() - shown as Half rows after them.
<uBricks>. 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.. Released builds have exactly these four; others exist only in development builds.
| Function | Parameters | Description |
|---|---|---|
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.
| Index | Meaning |
|---|---|
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]
)