Inside Sabertooth
Learn how Sabertooth uses 3ds Max to create 3D interactive projects, including HBO Go’s Game of Thrones interactive experience
  • 1/3
You are here: Forum Home / Autodesk 3ds® Max® / MaxScript / Randomly select objects
  RSS 2.0 ATOM  

Randomly select objects
Rate this thread
 
64109
 
Permlink of this thread  
avatar
  • FlynnAD
  • Posted: 02 February 2012 09:38 AM
  • Total Posts: 61
  • Joined: 01 March 2008 01:15 AM

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/lou...color_to_selected_objects

Any help?

Thank you!



Replies: 0
avatar
  • Anubis
  • Posted: 02 February 2012 10:11 AM

Try my Random(De)Select tool at ScriptSpot:
http://www.scriptspot.com/3ds-max/scripts/randomdeselect



Max 9 through 2009, XP-Pro x64 SP2
ASUS EAH3450 Series (Driver 8.470).
Core 2 Duo E8400 3GHz, 4Gb Ram, DX9.0c.

Replies: 0
avatar
  • FlynnAD
  • Posted: 02 February 2012 11:18 AM

Perfect! Thank you! Exactly what I was hoping for.



Replies: 0
avatar
  • soulburn
  • Posted: 03 February 2012 05:31 AM

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

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

- Neil



Replies: 0
avatar
  • denisT
  • Posted: 03 February 2012 03:39 PM

these are two very doubtful solutions. we discussed this issue on cgtalk forum.



Replies: 0