ITOOSOFT Forum

Author Topic: Seat Color Gradient by Height  (Read 105 times)

VelvetElvis

  • Newbie
  • *
  • Posts: 47
Seat Color Gradient by Height
« on: July 16, 2025, 03:07:14 pm »
I'm struggling with getting the LED lights on the front of the seats to gradient from the lower seats to the upper seats. The gradient probability macro works as the seats go down the rows, but I'm looking to do this from top to bottom. Is it also possible to do this with 3 colors?

Attached is the file to test with. Max 2024, Vray7, RC 6.4.1


Michal Karmazín

  • ITOOSOFT
  • Hero Member
  • *****
  • Posts: 3051
Re: Seat Color Gradient by Height
« Reply #1 on: Today at 08:38:43 am »
Hi,

Please find attached a revised version of your scene, edited by my colleague Paul. It features a modified version of the Gradient Probability macro that uses the Z position (XSplineCoords.z) instead of the spline position. I hope this helps.

Best regards,

VelvetElvis

  • Newbie
  • *
  • Posts: 47
Re: Seat Color Gradient by Height
« Reply #2 on: Today at 04:17:50 pm »
Once again, thank you so much for your help. Every time you solve something, it ends up be a super simple solution.