Skip to content
renderStacks by QuasiKrystal

Passgroup

Before renderStacks 2.0, a passgroup only grouped passes in the tree. Now you can add pmodifiers to a passgroup and make a hierarchy of overrides. Together with pass instances, this lets you make and manage hundreds of passes.

Pmodifier on passgroup

Treeview with the Camera001 passgroup, its Camera pmodifier and its passesLook at the pass setup in the image on the left.

{g} Camera001 is a passgroup. It has the passes beauty, beautyOrange, beautyRed, beautyPrv and a Camera pmodifier, [Ca] Camera001.

When you activate the pass beautyOrange, renderStacks runs the pmodifiers in this order:

[Ca] Camera001 – pmodifier on the passgroup {g} Camera001
[ROV] Base_RenderOutputVRay – base pmodifier
[Rs] Base_Resolution – base pmodifier
[oP:hdri] Base_ObjParams:hdri – base pmodifier
[oP:invis] ObjParams:invis_On – pmodifier on the pass beautyOrange
[Mtl] Material_001 – pmodifier on the pass beautyOrange

renderStacks always runs pmodifiers from the top down:

  1. It starts at the top level. For beautyOrange, this is the passgroup {g} Camera001.
  2. For each type with no local pmodifier, it uses the base pmodifier of that type.
  3. It runs the local pmodifiers of the pass, from the top down.

Treeview with a Camera pmodifier on the Camera001 passgroup and another on the beautyOrange passThe passgroup and the pass can have a pmodifier of the same type. Then renderStacks uses the pmodifier on the pass, because it is at the lowest level. renderStacks always uses the pmodifier at the lowest level and at the bottom.

When a pass has more than one pmodifier of the same type, the text color shows which pmodifiers renderStacks ignores. Black text means that the pmodifier is off or not used. But the color of a pmodifier on a passgroup does not change when a child pass ignores it. A passgroup can have many passes, and some passes may have no local pmodifier of that type.

For example, in the image on the left, renderStacks does not use [Ca] Camera001. [Ca] Camera003 is at the lowest level and at the bottom of the pass. But [Ca] Camera001 still has white text, because it is on a passgroup. [Ca] Camera002 has black text.

Ungrouping Passgroup

When you ungroup a passgroup, renderStacks asks what to do with its pmodifiers. To get the same render, click Yes. renderStacks then keeps those pmodifiers in each pass.

For example, this is before the ungroup.
Treeview before the ungroup: Environment_001 and Exposure_001 are on the GG passgroup

This is after the ungroup. Environment_001 and Exposure_001 moved to all child passes as instances.
Treeview after the ungroup: each pass has Environment_001 and Exposure_001 as instances

Instanced Pass

Treeview with the Camera003 and Camera004 passgroups and four instanced passes in boldIn renderStacks, bold text shows an instance, as in 3ds Max. In the image on the left, {g} Camera003 and {g} Camera004 have 4 instanced passes.

Instanced passes are one pass that shows in more than one place. A change to one instance applies to all instances. This includes:

  • Adding or removing pmodifiers.
  • Changing pmodifier values.
  • Changing the pmodifier order.
  • The color and the name.

!!! Instanced passes have the same name. Thus, two instances of a pass cannot be in the same passgroup, or both at the root level. If you try this, renderStacks shows a warning and cancels the task.
Message that a pass cannot be instanced within the same passgroup or tree root

The setup in the image on the left renders the same set of passes for each camera.

The tutorial shows this function:

6. Passgroup pmodifier

6-passgroup-pmodifier

Passgroup Management

A passgroup adds one more level to the pass setup. Thus, the pass and passgroup management functions have many changes. They can be confusing. Read this page carefully:

Working with Treeview