Rectangle and Lasso Object Selection

free scripts, plugins, models, textures
Post Reply
User avatar
clintonman
Captain
Posts: 5429
Joined: 21 May 2009, 21:08
Type the number ten into the box: 0
Location: California
Contact:

Rectangle and Lasso Object Selection

Post by clintonman »

Script for simulating rectangle and lasso selection for scene objects. It basically creates a mesh based on the bounding box of all scene items and after you select the vertices the corresponding scene objects are selected.

http://www.clintons3d.com/plugins/trues ... index.html" onclick="window.open(this.href);return false;
Clinton Reese

http://clintons3d.com
v3rd3
Lieutenant Commander
Posts: 1177
Joined: 21 May 2009, 20:04

Re: Rectangle and Lasso Object Selection

Post by v3rd3 »

Clinton thanks again for your efforts.
User avatar
clintonman
Captain
Posts: 5429
Joined: 21 May 2009, 21:08
Type the number ten into the box: 0
Location: California
Contact:

Re: Rectangle and Lasso Object Selection

Post by clintonman »

Updated and found a danger in the script.

First the good news(version 1.01):

New icons for less confusion
Some recovery ability if the tool is not ended properly with some drag in the viewport
Automatic installer

Bad news:

There is a sequence of actions that can crash truespace
1. click the custom lasso or rectangle select button
2. right click ending PE mode but not the tool
3. add a cube or any other primitive to the scene
Result: CRASH

Click the button + drag in the 3D view = GOOD
Click the button + go do something else = BAD


Edit: October 7 2011 - fix so doesn't select invisible objects
Clinton Reese

http://clintons3d.com
User avatar
clintonman
Captain
Posts: 5429
Joined: 21 May 2009, 21:08
Type the number ten into the box: 0
Location: California
Contact:

Re: Rectangle and Lasso Object Selection

Post by clintonman »

Update - no more crashes :)

Made the script more robust and doesn't crash anymore.
Right click will end the tool instead of just leaving PE mode and leaving the tool half done.
Ignores subsequent press of the rectangle and lasso buttons until after the selection is made.

http://clintons3d.com/plugins/truespace ... #rectlasso" onclick="window.open(this.href);return false;
Clinton Reese

http://clintons3d.com
User avatar
Draise
Captain
Posts: 3198
Joined: 21 Sep 2009, 19:33
Type the number ten into the box: 0
Location: Bogota, Colombia
Contact:

Re: Rectangle and Lasso Object Selection

Post by Draise »

Wonderful! That's a great improvement! I've been using it oh so carefully.
User avatar
clintonman
Captain
Posts: 5429
Joined: 21 May 2009, 21:08
Type the number ten into the box: 0
Location: California
Contact:

Re: Rectangle and Lasso Object Selection

Post by clintonman »

Update September 2019

bug: now works with pre-selected cameras and lights - bug was cause by the fact that selected cameras and lights are set to invisible, so they were ignored
improved appearance during selection - edges not visible, only points visible
uses "Workspace" status instead of "Model" status
Clinton Reese

http://clintons3d.com
User avatar
clintonman
Captain
Posts: 5429
Joined: 21 May 2009, 21:08
Type the number ten into the box: 0
Location: California
Contact:

Re: Rectangle and Lasso Object Selection

Post by clintonman »

Update: Sept 2020

Now respects the locking of objects from the unselectable script.
Clinton Reese

http://clintons3d.com
User avatar
clintonman
Captain
Posts: 5429
Joined: 21 May 2009, 21:08
Type the number ten into the box: 0
Location: California
Contact:

Re: Rectangle and Lasso Object Selection

Post by clintonman »

June 22, 2021

Update:

fixed a crash bug - the reason for the update
added support for NURBS
selection of 3d groups instead of the 3d group members

http://clintons3d.com/plugins/truespace ... lasso.html
Clinton Reese

http://clintons3d.com
Post Reply