Writing to Multiple Volumes at Once

calendar_today

14.12.2025

label

VEX, Environment

mouse

Houdini 20.5

Description

Writing to multiple volumes can be done using a single volume wrangle without any loops.

1 Instructions

Restrict the heigthfield or volume wrangle's group parameter to the name of the volumes you want to write to, eg. @name=mask*. Activate the tickbox "Bind each volume to density" which will write to all specified volumes at once and pretend your volumes are named "density" accordingly. In this case we sample another volume from the second input which is also called "mask" to a set of smaller volumes tiles:

f@density = volumesample(1, 'mask', v@P);

Enter density in the "Volumes to write to" parameter field.

download

Downloads

link

Related articles

favorite

373

label

VEX

Attribute to match across inputs

favorite

251

label

VEX

Sphere Packing / Dart Throwing Algorithm

favorite

275

label

VEX

Deintersecting spheres with Voronoi

favorite

317

label

VEX

Fitting Planes to Point Clouds

favorite

322

label

VEX

How to Analyze VEX Code

favorite

155

label

VEX

Monte Carlo Geometry Processing