Copy Stamp vs For Loops (and random rotation)

Опубликовано: 23 Март 2026
на канале: Houdini 123
16,994
276

0:00 - Intro
0:59 - Copy stamp
5:56 - For loops
9:28 - For loops - random layers

Scripts:
Copy stamp
stamp("../copy1/", myZrotation, 0)
stamp("../copy1/", myXrotation, 0)
myZrotation - fit01(rand(@ptnum),ch("minz"),ch("maxz"))
myXrotation: - fit01(rand(@ptnum+10),ch("minz"),ch("maxz"))

For Loops
For single layer:
fit01(rand(detail("../foreach_begin1_metadata1/", iteration, 0 )+2012),-30,30)
For multiple layers:
fit01(rand(detail("../foreach_begin1_metadata1/", iteration, 0 )+detail("../foreach_begin2_metadata1/", iteration, 0 )+2012),-30,30)

In this tutorial I will show you how you can use copy stamping and for loops and I will show you how to setup the same system in both of them. Both are great for adding randomization to your assets, but first a big note. In the official documentation it says:
“Copy stamping is no longer the recommended way to create variations when copying to points. Using a For-each loop and attributes instead is more efficient, easier to set up, and easier to understand”
end quote
So if you don’t specifically need copy stamping I would rather use for loops. There is not much difference in setting up the system, but for loops are more powerful and versatile and you can do a lot more with them. Plus they should be more faster and stable.

Become a patreon and support the channel
  / houdini123  

Instagram:
  / houdini123_tutorials