Message 1 of 6
Random Selection Script
Not applicable
06-23-2009
07:44 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi guys,
I wonder if anyone can help me. I have a script that someone on here put together a couple of years back.
clearSelection ()
for i = 11 to 5698 by 3 do
(
obj = execute ("$" + "Circle_" + i as string)
if obj != undefined do
(selectMore obj)
)
s=selection
The idea of the script is to select every 3rd object within a selection (named "circle_xx" in this example). I use this when I have a selection of, for example, 10000 objects which I need to split into a number of separate groups to "Align & Clone" another object to.
Although this works fine for most duties I need something different this time. I need a more "random" selection. Can this script be revised to make the selection more random...?
The attached screen dump shows an example of the selection which clearly shows distinct rows.
Edit: Looks like the attatchement won't upload from work... I'll try from home later.
Any help would be much appreciated.
Regards
Roly
I wonder if anyone can help me. I have a script that someone on here put together a couple of years back.
clearSelection ()
for i = 11 to 5698 by 3 do
(
obj = execute ("$" + "Circle_" + i as string)
if obj != undefined do
(selectMore obj)
)
s=selection
The idea of the script is to select every 3rd object within a selection (named "circle_xx" in this example). I use this when I have a selection of, for example, 10000 objects which I need to split into a number of separate groups to "Align & Clone" another object to.
Although this works fine for most duties I need something different this time. I need a more "random" selection. Can this script be revised to make the selection more random...?
The attached screen dump shows an example of the selection which clearly shows distinct rows.
Edit: Looks like the attatchement won't upload from work... I'll try from home later.
Any help would be much appreciated.
Regards
Roly