Skip to content
renderStacks by QuasiKrystal

Pass Modifier | Pmodifier

Pmodifiers are the engine of renderStacks. A pmodifier is a command that runs when you activate a pass. You must understand how pmodifiers work to use renderStacks.

::Base State

The ::base state is the start state of each pass, before renderStacks applies a pmodifier. If a pass has no pmodifiers, the scene goes back to the ::base state when you activate the pass.

When you add a pmodifier type for the first time, renderStacks adds a base pmodifier of that type. With a base pmodifier, each pass does not need its own pmodifier of that type. For example, you have 10 passes. 9 passes use Camera001, and 1 pass uses Camera002. Set Camera001 in the base Camera pmodifier. Then add one more pmodifier with Camera002 to the one pass. The base pmodifier is also the start state for accumulative pmodifier types.

Evaluation Order

renderStacks always runs the pmodifiers in the ::base depot first. Then it runs the pmodifiers of the pass from the top to the bottom.

Some pmodifiers are accumulative, but most are not. A pass can have only one active pmodifier of each type. For example, a pass has 2 Camera pmodifiers, with Camera001 and Camera002. renderStacks first changes the active viewport to Camera001. Then it changes the viewport to Camera002. Thus, only the bottom pmodifier of a type has an effect. The other pmodifiers of that type in the pass do nothing.

The tree view shows these relations.

Treeview with six Camera pmodifiers in the fgbty pass and the base Camera pmodifier in green in the bgBty pass

In the image on the left, the pass "fgBty" has 6 Camera pmodifiers. renderStacks runs them from the top to the bottom. Thus, only the bottom Camera pmodifier has an effect. renderStacks disables the pmodifiers that do nothing. It shows them in the disabled color (black in the dark UI).

The pass "bgBty" has no local Camera pmodifier. Thus, it uses the base Camera pmodifier. renderStacks shows the base pmodifier in green. Green tells you that the pass uses a pmodifier from the base state.

Treeview after a Camera pmodifier is disabled: the colors show which Camera pmodifier the pass usesYou can also disable a pmodifier manually. renderStacks then changes the colors to show which pmodifier the pass uses.

In the image on the left, Camera_228, the bottom pmodifier, is turned off manually. renderStacks turned on Camera_940. It is now the bottom Camera pmodifier that is available.

Because each pass shows the base pmodifiers, you can change base pmodifier parameters without a pass change. If you see too many pmodifiers, turn off Show Base Pmodifiers in the Settings rollout of the Note panel. The passes then do not show the base pmodifiers.

renderStacks with Show Base Pmodifiers off: the passes do not show the base pmodifiers

If each pass shows all base pmodifiers, you may not need the ::base depot. To hide it, turn off Show BaseDepot in the Settings rollout of the Note panel.

renderStacks with Show BaseDepot off: the treeview does not show the ::base depot

Accumulative Pmodifier

Most renderStacks pmodifiers are not accumulative. A pass can have only one active pmodifier of each type, as with the Camera pmodifier above.

Some pmodifiers do not work well with this rule. Object properties are an example. You may want to control "Visible to Camera" for one group of objects and matte properties for a different group. One pmodifier for object properties is too limited. Thus, for some pmodifier types, more than one pmodifier can be active in a pass. These are accumulative pmodifiers. At this time, renderStacks has 3 accumulative pmodifier types:

  • ManyObjParams
  • ObjPropsDisplay
  • ObjPropsRender

We strongly recommend that you do the accumulative pmodifier tutorial. The base pmodifier of the type limits the objects that you can control. A local pmodifier can only control a subset of the objects in the base pmodifier.

For example, you have 10 teapots, Teapot001 to Teapot010. You select only Teapot001 to Teapot005 in Base_ObjPropsRender and turn on "Visible to Camera".

Then you select Teapot003 and Teapot007 and turn off "Visible to Camera" for a pass. The property of Teapot003 changes. But the property of Teapot007 does not change. Teapot007 is not in the object selection of Base_ObjPropsRender, which has only Teapot001 to Teapot005.