Randomly select objects

Randomly select objects

Anonymous
Not applicable
6,702 Views
4 Replies
Message 1 of 5

Randomly select objects

Anonymous
Not applicable
Hi,

1) I am a total novice at maxscript and do not do any programming at all. I'm using 3dsmax 2012.

2) All I want to do is run a quick script to have Max randomly select a group of objects from the visible objects on the screen.

For example, if there are 1,000 objects, I want to grab 1/12 of them (and then I'll change their material). Then I'll hide those and want to grab, say 1/9 of the remaining ones (put another material on them and hide them). Then grab 1/4 of the rest and do the same thing, etc.

I'd like to specify the percentage or fraction of objects that I'm grabbing; that's it.

I found this old script link but it seems slightly different; PLUS I'm not a programmer and can't quite read it.

http://area.autodesk.com/forum/autodesk-3ds-max/maxscript/random-selection-script/

Louis Marcoux also posted this video on randomly assigning materials. It seems close, but I simply want to grab random objects.

http://area.autodesk.com/louis_tutorials/assign_random_wire_frame_color_to_selected_objects

Any help?

Thank you!
0 Likes
6,703 Views
4 Replies
Replies (4)
Message 2 of 5

Anonymous
Not applicable
Try my Random(De)Select tool at ScriptSpot:
http://www.scriptspot.com/3ds-max/scripts/randomdeselect
0 Likes
Message 3 of 5

Anonymous
Not applicable
Perfect! Thank you! Exactly what I was hoping for.
0 Likes
Message 4 of 5

Anonymous
Not applicable
My selectionRandomizer script does a similar thing, in case its helpful:

http://www.neilblevins.com/cg_tools/soulburnscripts/soulburnscripts.htm

- Neil
0 Likes
Message 5 of 5

Anonymous
Not applicable
these are two very doubtful solutions. we discussed this issue on cgtalk forum.
0 Likes