select_faces_by_sides
Select faces of one mesh by how many sides they have.
Instructions
Select faces of one mesh by how many sides they have.
The direct way to find ngons (GREATER than 4) or triangles (EQUAL to 3), which is what topology cleanup usually needs. Works inside one mesh; to select whole objects use select_objects.
Args: object_name: Name of the mesh object. number: Number of sides to compare against. A face has at least 3. comparison: One of: LESS, EQUAL, GREATER, NOTEQUAL. extend: Add to the current selection instead of replacing it.
Returns: Dict with how many faces were selected.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| extend | No | ||
| number | No | ||
| comparison | No | EQUAL | |
| object_name | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||