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

390

label

VEX

Attribute to match across inputs

favorite

271

label

VEX

Sphere Packing / Dart Throwing Algorithm

favorite

293

label

VEX

Deintersecting spheres with Voronoi

favorite

330

label

VEX

Fitting Planes to Point Clouds

favorite

334

label

VEX

How to Analyze VEX Code

favorite

170

label

VEX

Monte Carlo Geometry Processing