noob question: crowd layering

   1577   2   3
User Avatar
Member
11 posts
Joined: April 2018
Offline
Hi all,
I have a stupid question about houdini crowd.

So i have an fbx with a character.
It has 10 types of body, 10 types of jacket and 10 types of pants.

So i create 10 layers of body, 10 layers of jackets and 10 layers of pants.

But when i check “randomize current layer” and put 3 different groups (body, jacket,pants) in crowd source node, I end up with a crowd of pants, bodies and jackets all separate from each other.

What is the correct way to randomize layers so I can have an agent with 1 random body, 1 random jacket and 1 random pants?
User Avatar
Member
2 posts
Joined: May 2013
Offline
I've done similar thing before. At that time I used for loop in for loop in for loop … … to go through all patterns and naming layers uniquely like layer_111 layer_112 layer_121 … …
So you'll need to either make those layer files outside of Houdini or by using default layer, pick individual pattern by using for-each loops and export layer files by agent definition cache node.
I can prepare a sample if you like.
User Avatar
Member
11 posts
Joined: April 2018
Offline
Thanks for the answer, Makoto!

I've already made a setup similar of that you are writing about.
I've made it similar to SideFX example of agent layer variations in help.

Thank you anyway!
  • Quick Links