Message 1 of 5
Randomly select objects
Not applicable
02-02-2012
02:38 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
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!
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!