NodeIcon SelectPolygons

Selects polygons on a geometry, provides a set of tools to modify selections like loop, grow and invert selection. SelectPolygons node also allows loading/saving sequences of polygon selections to/from file.


Editor

The SelectPolygons node has an editor that allows you to create and modify polygon selections.

Use LMB click

to select a single polygon

Use LMB click and drag

to select polygons with a lasso

LMB Double-click on a model

to select/add/remove a polygroup

RMB on a model opens menu

to select/add/remove component, polygroup, material or UDIM

Hold SHIFT while selecting

to add polygons to selection

Hold CTRL while selecting

to remove polygons from selection

SHIFT + double-click near selected polygons

to select a loop (only available for manifold geometry)

The editor has a toolbar with a set of useful tools:

../../_images/SelectPolygonsEditor.jpg
Grow:

grow selection by one row of polygons

Shrink:

shrink selection by one row of polygons

Loop:

loop selection. Requires at least two polygons to be selected. Only available for manifold geometry.

Invert:

invert selection

Hide selection:

hide selected polygons, makes it easier to select inner parts of a model like mouth socket

Unhide all:

unhide all

+ Polygroup:

choose a polygroup name from drop-down list to load selection from specific polygroup to add it to current selection

- Polygroup:

choose a polygroup name from drop-down list to load selection from specific polygroup to subtract it from current selection

+ Material:

choose a material name from drop-down list to load selection from specific material to add it to current selection

- Material:

choose a material name from drop-down list to load selection from specific material to subtract it from current selection

Inputs

Geometry

Geometry An input geometry

Output

PolygonSelection PolygonSelection

Parameters

Display Mode:

specify what to show in the Visual Editor. Toggle it with C.

Standard

displays geometry as is.

Polygroups

highlights each polygroup (if the geometry has polygroups) with unique color.

Materials

highlights each material (if the geometry has materials) with unique color.

Wireframe Mode:

specify when to show the mesh wireframe. Toggle it with X.

From Input

wireframe visibility is defined by the Wireframe toggle in the connected geom node (such as LoadGeom, LoadAlembic or LoadVertices)

Always Show

always show the wireframe

Always Hide

never show the wireframe

Source:
User Input

the selection is defined by user and can be modified within the Editor

File

the selection is loaded from a file defined by File Name parameter. The selection can not be modified by user.

File Name:

defines a file to save polygons to or to load polygons from in User Input or File modes. Supports Path Interpretation.

Export:

save current selection to a file (defined by File Name parameter). Only available in User Input mode.

Import:

load selection from file (specified by File Name parameter). Only available in User Input mode.

Clear:

clear current selection. Only available in User Input mode.

File Format

Wrap can import/export polygon selection data to a text file in JSON format. The format is compatible with WrapX. The format represents selection in the following way:

[0, 1, 55, 100]

Where 0, 1, 55 and 100 are indices of selected polygons.

Tip

Use # characters in file name so save/load sequences of selection. The characters will be substituted with a current frame number during import/export.

Save a Sequence of Selections

  1. Set Source parameter to User Input.

  2. Set a File Name parameter to something like C:/Selections/Selection###.txt

  3. Switch to frame 0 on the Timeline, select a set of polygons in Editor and click Save. The selection will be saved to file C:/Selections/Selection000.txt

  4. Switch to frame 1, change the selection and click Save again. That will save the selection for the current frame to a corresponding file C:/Selections/Selection001.txt

Load a Sequence of Selections

  1. Set a File Name parameter to something like C:/Selections/Selection###.txt

  2. Set Source parameter to File.

  3. Switch to frame 0 on the Timeline. The selection will be automatically loaded from file C:/Selections/Selection000.txt

  4. Switch to frame 1. That will load a corresponding selection from file C:/Selections/Selection001.txt