# vrayUserScalar  \> Integer

**URL:** <https://forums.chaos.com/t/vrayuserscalar-integer/52860>\
**Category:** General\
**Created:** [February 27, 2015, 5:44pm UTC](https://forums.chaos.com/t/vrayuserscalar-integer/52860 "2015-02-27T17:44:00Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![re\_FORM](https://dub1.discourse-cdn.com/chaosprd/user_avatar/forums.chaos.com/re_form/32/36295_2.png) [@re\_FORM](https://forums.chaos.com/u/re_FORM)\
**Post date:** [February 27, 2015, 5:44pm UTC](https://forums.chaos.com/t/vrayuserscalar-integer/52860/1 "2015-02-27T17:44:00Z")

</div>

I’m trying to apply a unique seed to a tile map for each object, to randomise window intensities.  
I thought the vrayUserScalar might be a great way to achieve this as we can pipe a unique seed from the object into the shader, unfortunately, the vrayUserScalar is only producing map pixel colours, rather than integer values that can be used in float/integer values within the shader.

Would if be possible to make a variation of the vrayUserScalar map that I can use to pipe numeric information on an object-by-object basis into shader parameters such as seed, uv-offset, etc.

I can’t think of another way to do this without going down a complex setup route… unless anyone has any clever suggestions?

As a side note, I’d love to hear any clever uses people have found for the vrayUserScalar map?

Thanks  
p.

---

<div class="post-metadata">

**Author:** ![Joelaff](https://dub1.discourse-cdn.com/chaosprd/user_avatar/forums.chaos.com/joelaff/32/71647_2.png) [@Joelaff](https://forums.chaos.com/u/Joelaff)\
**Post date:** [February 27, 2015, 8:26pm UTC](https://forums.chaos.com/t/vrayuserscalar-integer/52860/2 "2015-02-27T20:26:22Z")

</div>

Perhaps use a script controller on those values like UV offsets?

Could you not just use the user\_scalar or even user\_color to set the desired window intensity? Or access that with a VRayUserScalar or VRayUserColor and then combine it with something else in a composite map to achieve the window randomization?

For instance set user scalars from 0.0 - 1.0 and then use a composite map with multiply to control, say reflectivity, or self illumination, etc.

Then you could assign the user\_scalars randomly with a script.

What exactly are you trying to do, and what is the current approach?

Which seed value are you trying to modify with a user scalar?
