what is the command flag for random selection in max script??
Solved! Go to Solution.
Solved by Swordslayer. Go to Solution.
select (for obj in selection where random 0 1 > 0 collect obj)
Thank you for the reply i tried it
the function that you create required a selection so i did a
select $*
select (for obj in selection where random 0 1 > 0 collect obj)
it worked but i have to copy the last line command several times to end up with a single selection in the scene as the scene is highly populated with 1000 of objects, is there any simple format of code?
If you want to randomly select just one object, select objects[random 1 objects.count] might be better...
Can't find what you're looking for? Ask the community or share your knowledge.