Skip to content
renderStacks by QuasiKrystal

[oP] ObjParams / [moP] ManyObjParams

[oP] ObjParams – 1 per pass, sub name required, Custom Object

[moP] ManyObjParams – Accumulative, sub name required, Custom Property

ObjParams and ManyObjParams control almost all parameters of a node, a base object or a modifier for each pass. You can control each parameter that MAXScript can access.

The difference between ObjParams and ManyObjParams

  • ObjParams controls 1 property for each object individually. For example, each object can have a different "radius" value in each pass.
    ObjParams pmodifier with a different radius for each teapot
  • ManyObjParams controls many properties for many objects at a time. But all objects have the same value for a property. For example, you can control the multiplier and the color of 87 lights at a time. But in each pass, all lights have the same intensity and color.
    ManyObjParams pmodifier that controls four properties of the teapots layer

This was the first pmodifier that needs a sub name. A colon [:] separates the pmodifier type and the sub name, for example ObjParams:LitMul. Thus, you make your own pmodifier for each parameter that you control.

You must type a sub name. Thus, you can make the first ObjParams pmodifier only from the Tab menu.

To select a parameter, use the 2 dropdowns. The first dropdown sets where the parameter is. The second dropdown sets the parameter name.

Node

In the 3ds Max SDK and in MAXScript, a "node" is a scene object. Select "Node" to control parameters of each object, for example the wireframe color and the object ID. Some node parameters have their own pmodifiers, for example AlignLink (parent), Transform and Material. Use this option for the other node parameters.

New in 1.1: ObjParams and ManyObjParams can control the material.
Material control with ObjParams is almost the same as the Material pmodifier. Use it if you need a second Material pmodifier.

ManyObjParams pmodifier with the Material, ObjectID and Wirecolor node properties

baseObject

The base object is the item at the bottom of the modifier stack. It has the creation parameters of a parametric object, for example a Sphere or a Teapot. It also has all light and camera settings.

When you select "baseObject", the parameter dropdown shows the parameters that the base objects of the selected objects have in common. For example, to control the radius of spheres and teapots, select "baseObject" and "radius".

baseObject | [class name]

The same as "baseObject", but only for one class. For example, only Teapots or only Omni lights.

[Modifier name]

If the selected objects have modifiers with the same name, you can control all parameters of those modifiers.

If an object has more than one modifier with the same name, renderStacks uses the top modifier. Thus, give each modifier that you control a unique name.

controller

You can control the parameters of any controller on an object. The path sets the controller. To control nested controllers, the controller path must be the same.

How to add ObjParams / ManyObjParams pmodifier

  1. When you add an ObjParams pmodifier, it asks for "Type_Subname".
    Add Pmodifier field that asks for Type_Subname

  2. If you try to make an ObjParams pmodifier without a sub name, renderStacks shows a warning. Message that asks for a sub name for ObjParams

  3. Type the sub name and press Enter. A double-click does not work here.

    You can use any sub name with letters and numbers. The sub name does not change what the pmodifier does. It is only a name. But a name that tells what it does is better. 🙂

    This is a new ObjParams pmodifier. The short name shows the sub name "radius" after the colon: [oP:radius].
    Treeview with the new ObjParams pmodifier, with radius as its sub name

  4. In the Pass modify panel, there are two empty dropdowns. Use them to select the parameter to control.

    Select objects in the scene. Then open the left dropdown first. It shows what you can control: the node, the base object or the modifiers.

    ObjParams pmodifier with the first dropdown open: Node, baseObject and Bend

  5. After you select an item in the first dropdown, the second dropdown fills. Select the parameter to control there. If a parameter is nested, for example FumeFX.standard, the list also shows all nested parameters.

    If the list is long, type text in the dropdown. The dropdown then works as a search box. It shows only the parameters with that text in the name.

    ObjParams pmodifier with the parameter list of the teapot base object

  6. If you know the exact names, you can type directly in both dropdowns.

  7. Right-click the list below and add the objects to control. The list shows only the objects that have the selected parameter.

  8. Add the objects to control.

  9. After you assign objects, you cannot edit the dropdowns. The dropdowns are no longer text boxes.

    ObjParams pmodifier with objects assigned, so the two dropdowns are locked

How to change property to control

  1. Right-click the list.
  2. Use Clear to remove all objects. You can then select a different parameter.

How to use ManyObjParams

  1. Add a ManyObjParams pmodifier. It needs a sub name, the same as ObjParams.
  2. Set the objects to control in the Objects section.
    ManyObjParams pmodifier with the teapots layer as its objects
  3. Select a property to control.
    You must select an object to see the property list.
    You can also type the name.
    ManyObjParams pmodifier with Bend and BendAngle in the property dropdowns
  4. Open the right-click menu.
  5. Select Add Property from Dropdown.
    ManyObjParams right-click menu with Add Property from Dropdown
    The list shows the new property.
  6. Add more properties as necessary.