PDA

View Full Version : Selection Range of Random Clones


typografschaft
06-11-2012, 04:35 PM
I want to have 30 clones out of 100 for example be written into the MoSelection Tag but in a random order. It's important that in the end there are exactly 30 clones in the MoSelection Tag. I tried to do that with xpresso but shuffling an array of Booles seem to be impossible without scripting :-)
Thanks in advance.

Darter
06-12-2012, 11:46 AM
A Python node using the random module seems to work okay. The XPresso tag has User Data for selection count and random seed.

Random_MoSelection.zip (http://bit.ly/LYlVz0)

typografschaft
06-12-2012, 01:38 PM
Thanks very much David, you're a magician :-)

CGTalk Moderation
06-12-2012, 01:38 PM
This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.