Automating geometry bakeouts

   4248   1   1
User Avatar
Member
29 posts
Joined: 1月 2008
Offline
I'm working on a domino project, and want to write each tile combination to disk (ie. I would like to write out one domino that has the numbers 0-0,0-1,……,4-6,5-6,6-6) so that I can eventually instance them. I have an HDA that I created with two parameters, ‘topnum’ and ‘botnum’ that allows me to control the number combinations on the tiles. Now to write them to disk I can drop down a file SOP, set the top and bottom numbers to 0-0, name the bgeo file 0_0.bgeo, and repeat this process 48 times for every possible combination. This is tedious and boring, and doesn't seem to be the houdini way of doing things. How should i go about automating the process of writing all this geometry to disk?
User Avatar
Member
1533 posts
Joined: 7月 2005
Offline
you could look at basing the topnum and bottomnum combinations on $F (current frame number). you could also determine and set the output filename to those same values for indexing.

Mathematically speaking, look at the modulo operator if you need helping ‘wrapping’ numbers back to 0 after they reach 6.

Post if you need further clues.

Good luck.

G
  • Quick Links