Randomize People

Randomize People

oriole_phillips
Advocate Advocate
2,318 Views
8 Replies
Message 1 of 9

Randomize People

oriole_phillips
Advocate
Advocate

Can you randomize people or other data like you can with trees?

0 Likes
Accepted solutions (1)
2,319 Views
8 Replies
Replies (8)
Message 2 of 9

elliott.rosenfeld
Autodesk
Autodesk

You can use style rules to randomize the display of different object styles. There may be other ways out there, but this is a pretty quick option.

 

For example:

1. Choose sketch a stand or row of trees, but select a person for the draw style. (3D Models/People style catalog). Alternatively you could sketch them as city furniture or barriers.

2. Adjust density slider (optional).

3. Without de-selecting, open the Properties Palette (right click and choose properties, or use the intelligent toolset)

4. Add "people" as a property value in the 'Tag' or 'User Data' field

5. Open the Style Rules panel and press the Green Plus sign to create a new style rule,  and create the expression Tag ='people' then press OK,

tag_people.jpg

6. Add the desired people (3D model) styles to the style rule. Make sure that you have Probability set to 1.00 for all styles so that each style has an equal probability to appear. Press OK.

style_rules_probabiity 1.jpg

7. Select Commit, then Run Rules.

commitandrun.jpg

8. Your people should appear (somewhat) randomly where you sketched them, depending on the sketch type you chose (row of trees vs. stand of trees, etc.) Admittedly, the picture below doesn't do the workflow full justice, because I got lazy and only assigned 3 people models to my style rule, but it should give you a sense of what can be done.

people_random.jpg

 

Hope this helps!

 

Also, check out these related threads for more help + discussion of object randomization in IW360:

 

Thanks,

Elliott

 

 

 


Principal Specialist, Infrastructure
Message 3 of 9

oriole_phillips
Advocate
Advocate

Hmm this didn't work for me. Do I need to erase the Manual Style under Stylization in the Properties windows? Also, does this only work with the Infraworks People catalog? I imported 3D models (.dae) from Sketchup of some low poly people, this should work, correct?

0 Likes
Message 4 of 9

elliott.rosenfeld
Autodesk
Autodesk

Yes, Manual Style will override all else, so you will need to clear the Manual Style in order for this to work.

 

And this procedure should work for any 3D model you want. For step 1, just choose any 3D models style catalog you'd like, including a catalog that contains the Sketchup DAE (Collada) files you imported.

 

For Step 4 and Step 5, use whatever naming convention you want for the Tag, so long as it matches what you put in your style rule expression. When adding styles to the style rule, select your Sketchup people.

 

That should work.

 

Thanks,

Elliott


Principal Specialist, Infrastructure
0 Likes
Message 5 of 9

oriole_phillips
Advocate
Advocate

Still doesn't work for me. I tried with trees, see clip.

0 Likes
Message 6 of 9

elliott.rosenfeld
Autodesk
Autodesk

Hi Oriole,

 

Your style rule is in the Barriers style catalog, not the trees catalog. If you recreate that style rule in the Trees catalog, i think it will work for you.

 

Thanks,

Elliott


Principal Specialist, Infrastructure
0 Likes
Message 7 of 9

elliott.rosenfeld
Autodesk
Autodesk

Here's what I did to randomize trees:

 

  1. Sketch a stand of trees.
  2. Select all Trees via Model Explorer
  3. Open Properties Palette for all Trees and add ‘Wild’ to Tag or User Data field. Click Update.
  4. Create Trees Style Rule with numerous tree styles. (Expression was USER_DATA = ‘Wild’ )
  5. Commit/Run Rules.

randomtrees.png

 


Principal Specialist, Infrastructure
0 Likes
Message 8 of 9

oriole_phillips
Advocate
Advocate
Accepted solution

Thanks, trees worked.

0 Likes
Message 9 of 9

jamesmac1201
Advocate
Advocate

Can you do a Screencast on the process?

0 Likes