Rig for material value

I am trying to make a slider rig that when the arrow points to the value, the corresponding digit lights. Each number has a pass index value, and works when typed into the value node. I'm not sure connect the driver in my node tree to see the slider and slider numbers. Is it possible to connect the value node into a slider rig?



  • spikeyxxx replied

    I'm not sure if I understand you correctly, but in a set-up like this:

    the Value goes 0, 1, 2, ... when you move the Cube to the right.

    If you use the arrow in stead of the cube, constrain it's X-location between 0 and 9 and lock it's Y- and Z- location, that will give you the behaviour that (I think) you want...

    In case you can't read it, the scripted expression I used is. 'var-var%1'. and var is the X-location of the Cube.

  • Joey Burrow(cptneclectic) replied

    spikeyxxx I tried setting it up like you had it in a new file just to test. but my value didn't change in the node or in the driver editor though. I'll link my file of what I was trying to use the driver for.  value slider .... I also tried using empties and the distance type for the variable.

  • spikeyxxx replied

    cptneclectic Hey Joey, I think I managed to fix it, so that it works the way it should.

    The main problem was the scale. I honestly can't remember what I had to change exactly, because I had to experiment a bit and try and understand what was happening in your file..

    So, you'll have to compare this with your file and see what's changed yourself, but as far as I can tell, it works.

    Here's the link:

    https://drive.google.com/file/d/1CQyIZgxY_IU6aH5FOnkSymbBiWDuMGwt/view?usp=sharing

    If you have any problems, please let me (us!) know.