Interface: INodeMentalRayProperties

This represents a Node Interface to the node’s mental ray properties. These properties correspond to the UI controls found in the mental ray tab of the Object Properties dialog. Available in 3ds Max 8 and higher.

Properties:

.mr_displacementUseGlobalSettings : bool : Read|Write

Corresponds to the Use Global Settings checkbox in the Object Properties > mental ray tab > Displacement group of controls. When set to true, the global displacement settings will be used. When set to false, the following values will be used instead:

.mr_displacementMethod : enum : Read|Write

mr_displacementMethod enums: { #Fine | #Fine_NoSmoothing }

Corresponds to the Smoothing (Turn OFF with Height Maps) checkbox in the Object Properties > mental ray tab > Displacement group of controls.

The values have the following effect:

#Fine - checked.

#Fine_NoSmoothing - unchecked.

.mr_viewDependentDisplacement : bool : Read|Write

Corresponds to the View-Dependent checkbox in the Object Properties > mental ray tab > Displacement group of controls. When set to true and the Use Global Settings option is turned off, the displacement will be view-dependent.

.mr_displacementEdgeLength : float : Read|Write

Corresponds to the Edge Length value in the Object Properties > mental ray tab > Displacement group of controls. When the Use Global Settings option is turned off, then if the View-Dependent option is turned on the edge length value will be taken in pixels. If the View-Dependent option if turned off, the edge length will be used as generic units.

.mr_maxDisplace : float : Read|Write

Corresponds to the Max.Displace value in the Object Properties > mental ray tab > Displacement group of controls. When the Use Global Settings option is turned off, this value controls the maximum displacement for this object.

.mr_displacementMaxLevel : integer : Read|Write

Corresponds to the Max.Level value in the Object Properties > mental ray tab > Displacement group of controls. When the Use Global Settings option is turned off, this value controls the maximum displacement levels for this object.

See also

Node Interfaces