Page History
...
Section | ||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
Here the new attribute can be specified. For the purposes of driving Reflection Glossiness, the attribute type will be a keyable floating point scalar. Note the attribute Long name must begin with vrayUserScalar_ in order to be read by VRayUserScalar later.
...
After clicking Ok or Add, the new attribute is available in the Channel Box/Layer Editor. Animate this attribute by editing its value and keying it at different points in the scene's timeline. To add a key, right click the attribute and select Key Selected.
For this example, the Reflection Glossiness is keyed with a value of 0.5 on frame 1 and 10 on frame 10.
New user attribute with the value keyed
...
The material and VRayUserScalar texture must be set up next. As seen in the node graph below, the VRayMtl's Reflection Glossiness is driven by VRayUserScalar's Out Alpha. The VRayMtl is then assigned to the Cube object.
The final step is linking the VRayUserScalar texture with the custom attribute. This is done in the VRayUserScalar User attribute name parameter. Note the vrayUserScalar_ prefix is omitted here.
The final rendered results show the Reflection Glossiness value animated between frames 1 and 10.
...