Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Overview

...

Section
Column
width50%62%

The VRayUserScalar texture allows the user to read and return a single number value from the User-Defined properties of the currently shaded object as a result. This can be useful if the same material or texture is applied to several objects in the scene, but we want to control some of its aspects (i.e. material glossiness, or a blend between two other textures inside a Mix texture etc) with User-Defined properties.

The Example on the right uses a VRayUserScaler node to control the reflection glossiness value on a single V-Ray Material. The four different pieces of the shader ball have a VRayUserAttribute that dictates different values that drive the reflection glossiness.

Column
width5%

 

Column
width45%33%

Image Modified

UI Expand
titleUI PathsPath: ||Hypershade|| > Create panel > VRay section > Utilities
Section
Column
width10%

 

Column
width40%
||Hypershade|| > Create panel > VRay section > Utilities
> VRay User Scalar

Image Modified

Column
width10%
 

 

Parameters

...

Section
Column
width60%62%

User attribute name – Specifies the name of the user attribute that is looked up and returned from this shading node.

Default value – Specifies the value to return if the user attribute is not found on the shaded object.

Required format for attribute name – Displays possible formats for the attribute in the V-Ray User Attributes string assigned to the object, and what is rendered as a result.

Column
width5%

 

Column
width35%33%