PDA

View Full Version : select all the objects in my circle


diez-art
08-30-2009, 05:58 PM
http://www.diezar.com/stockage/CaptureRub.jpg (http://www.diezar.com/stockage/Capture.jpg)
Click to enlarge the image

Hello,
I would like to know if it is possible to select only the objects which are inside my circle. Thank you

Cyrill

msmith81
08-31-2009, 01:56 PM
hi, you can try this:

select (for obj in objects where (intersects MyCtrl obj) collect obj)

It works very well for your picture. However, it works off of the bounding box of your circle, so if you rotate it 45 degrees, you will select too many boxes. But maybe this is a good start for you?

diez-art
08-31-2009, 02:12 PM
good! Thank you msmith81!! :thumbsup:

CGTalk Moderation
08-31-2009, 02:12 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.