Exporting Parameters

Overview

Parameters allow you to wire an input node to any numerical value of a generator, object or operator. This enables you to wire together properties, including those on different nodes, with the potential to build complex procedural relationships by using the Arithmetic node type.

There are two types of Parameter node available. The constant node that can only be modified by opening the style editor, and the Numeric node that is adjusted from the Parameters rollout. Using the latter you can create easily modifiable styles that do not require you to open the style editor to make adjustments.

In this section:

 

Procedures

To add a Numeric parameter to a node property:

  1. Right click on a Generator, Object, or Operator node. From the menu select Export and check the parameters you wish to control. A new slot will be added at the bottom on the input list.
  2. Add a new Parameter>Numeric node to the construction view by dragging from the list on the right
  3. Define the type of value, either IntegerFloatPercentage of Scene units.
  4. If necessary, turn on the limits and set the Minimum and Maximum values
  5. Wire the output of the Numeric Node the the newly exposed parameter slot of the target value.
  6. Adjust the new value from the Parameters rollout in the RailClone object.

To add a Constant parameter to a multiple node properties:

  1. Expose multiple properties by right clicking on nodes, going to export, then choosing properties to create new input slots on the node. Do this for any properties you wish to control for generator, segment, and operator nodes.
  2. Create a new constant parameter by dragging it to the construction view from the items list on the right.
  3. From the properties editor, set the constant type. Options are IntegerFloatPercentage or Scene Units.
  4. Set the constant Value.
  5. Wire the constant output to inputs by clicking and dragging with the mouse.

Note that the Constant parameter type can only be modified from within the style editor. If you wish to wire a numeric node to multiple inputs, follow the same steps but using this node in place of the constant.

Using constant and parameter nodes in simple arithmetic operations:

  1. Right click on a generator, object, or operator node. From the menu select Export and pick the parameter or parameters you wish to control. A new slot will be added at the bottom of the input list for each selected.
  2. Drag a new Numerical node from the items list to the construction view and set the TypeValue and Limits as described above
  3. Drag a new Constant node from the items list to the construction view. Set the Type and enter a value to be used in the equation, for example, to halve the value of the numerical node, enter 0.5 as a constant.
  4. Drag a new Arithmetic node from the items list to the construction view. From the drop down list choose the type of mathematical operation. Options are AddSubtractMultiplyMaximum and Minimum.
  5. Wire the numerical or constant node to the first input of the arithmetic node
  6. Wire the remaining parameter node to the second input of the arithmetic node.

Interface


Numeric

Creates a new Numeric parameter that can be entered outside the style editor by the user. Similar to the spline node, the value for this is determined in the Parameters rollout of the 3DS Max Plugin.

This number can be animated

Type

Defines the type of number to be used

Integer. Use for whole numbers
Float. Use for decimal numbers
Percentage. Use for percentages (Usually with scale values)
Scene units. Use for measurements in scene units
Booleans: Use for true/false logic operations

Limits

Use this to constrain the input range between two values.

Description

Used to explain the purpose of the numeric node. This information will be automatically added to the Style Description and will appear if you ciick on the help button.

Retain Value Mode.

This setting overrides behaviour for the Retain value feature used on Library, Copy Style and Style Linking procedures. Options include:

  • Auto: parameter value is retained if has been modified by the user.
  • Local: retain always value of local parameter
  • Global: parameter is always overwritten, copying value from the master RC object.

Constant

Creates a new constant value that can only be changed from within the style editor. Unlike the Numeric node, this property cannot be animated.

Type

Defines the type of number to be used

Integer. Use for whole numbers
Float. Use for decimal numbers
Percentage. Use for percentages (Usually with scale values)
Scene units. Use for measurements in scene units

Value

Set the value of the parameter