Object Selection¶
Object Selection Type¶
This UI shows when a pmodifier works with many objects. All pmodifiers use the same UI to select many objects.

renderStacks has 8 ways to define an object selection:
- LS (LayerSet) – a set of layers. The dropdown shows the existing LayerSets. Select one to use it.
To make a LayerSet, right-click the LS button. The LayerSet Editor opens.
nLS (Nested LayerSet) – selects all objects on the selected layers and on their child layers. For example, in the image, the LayerSet has 2 layers: "frombunch" and "tubes". If you use this LayerSet as nLS and not as LS, renderStacks uses all highlighted layers to select objects.- Lyr (Layer) – one layer. If you need only one layer, this is easier than a LayerSet.
- nLyr (Nested Layer) – the selected layer and all its child layers.
- SS (Selection Set) – a selection set.
- PN (Pathname) – in MAXScript, a pathname names objects by hierarchy or by pattern.
Examples:
$box01 — the object named 'box01'
$torso/left_up_arm/left_low_arm — a hierarchy path name
$*box* — all objects with 'box' in the name
$torso/* — all direct children of "torso"
$helpers/d* — all helper objects with a name that starts with 'd'
For more data, see the MAXScript help. - All – all objects.
OS (Object Set) – combines the 7 methods above. In the example, the ObjSet "Sample" starts with the LayerSet "AllGeos". Then it excludes Teapot001 (see the [-] button). Then it adds all objects on the "Light" layers.
With an ObjSet, you do not have to make a new LayerSet that combines LayerSets. You can also exclude objects from a LayerSet without moving them to a different layer.
This is a strong method to select objects. But we recommend that you keep your ObjSets simple.
For more data, see ObjSet Editor.
New in 1.1: when you select OS in a Visibility pmodifier, renderStacks fills in an ObjSet name and enables the Add button. You can then add items to the ObjSet immediately.

Include/Exclude¶
The Include/Exclude button works the same as the radio buttons with the same name in the 3ds Max Include/Exclude dialog.
- Include – the pmodifier uses the objects that you define here.
- Exclude – the pmodifier uses all objects except the objects that you define here.
!!! This option is always Include for the Visibility pmodifier. The Visibility pmodifier needs special logic to find what to unhide. For more data, see the Visibility section.
Visible as SelectionSet / Visible as ObjSet¶
These 2 buttons save the visible objects as a Selection Set or an ObjSet.
If the pmodifier already uses the same object selection type, renderStacks asks if you want to update the current set or make a new set.

- Yes – renderStacks updates the current Selection Set or ObjSet.
- No – renderStacks makes a new Selection Set or ObjSet. By default, the new set gets the pass name of the pmodifier.
For an ObjSet, renderStacks does these steps:
- It makes a LayerSet of all visible objects.
- It makes a Selection Set of the hidden objects on visible layers.
- It subtracts the Selection Set.
In this example, the ObjSet gets the pass name "TeapotsNTubes". The LayerSet and the Selection Set in the ObjSet get the names "4[passname]_LS" and "4[passname]_SS".

If you change or rename the LayerSet or the Selection Set and then select update, renderStacks updates the current set.