Anim8or Community

Please login or register.

Login with username, password and session length
Advanced search  

News:

An update to Anim8or, v1.00b, is available with a few bug fixes. Get your copy HERE. See the "ReadMe" file for details.

Author Topic: Select Larger/Smaller  (Read 1303 times)

Raxx

  • Administrator
  • Hero Member
  • *****
  • Posts: 1448
    • View Profile
Select Larger/Smaller
« on: October 30, 2014, 03:17:53 am »

In the zip file attached are two scripts, "Select Larger.a8s" and "Select Smaller.a8s". Install them into your scripts directory.

As one might imagine...
  • If you select a shape and activate either script, then it'll select all larger or smaller shapes in that object (by volume of the bounding box).
  • If you select a face and activate either script, then it'll select all faces in the object that are larger or smaller than the currently selected face(s).
  • If you select an edge and activate either script, it'll select all edges that are longer or shorter than the currently selected edge(s).

If you select more than one shape, it adds the volumes together and searches for shapes larger/smaller than their combined individual volumes. The same applies to faces and edges. This way you can select, say, a blob of faces and find all faces that are larger or smaller than that blob.

The "Selection Margin" float attribute allows you to define a percent margin between -1 and 1. A margin of, say, 0.1 when Selecting Larger faces, will select all faces that are 0.9 times the surface area of the currently selected face(s) or larger. A -0.1 would select all faces that are 1.1 times the area or larger. It's flipped for selecting smaller: a 0.1 when Selecting Smaller would select all faces that are 1.1 times or less the area, and -0.1 would select all that are 0.9 times or less the area. The default is 0.00. Whenever you run any of the two scripts, this attribute is automatically created so that you can jump in and adjust the margin with ease.
« Last Edit: October 30, 2014, 03:18:32 am by Raxx »
Logged