Material ID percentage by height (like Beiging watercube auditorium)
Hi
I need to generate randomly and continuosly changing seats pattern in the auditorium, based on two colors of the seat. Let's say from solid blue at the bottom, through mixed, to solid white at the top. Just like this watercube auditorium in Beiging. http://farm4.static.flickr.com/3079/2545312854_0150dde999_o.jpg
We have as a starting point a the auditorium made up of simple seats (each with pivot point at its centre) which should be replaced by the blue and white vrproxies in the fashion as per the image.
Up till now we've been doing a random coloured auditoriums by usin a little script without a problem. What I don't know how to do is to have the randomness (or ratio of the randomness) change with height.
Thank you for any help.
Marek
Comments
Already replied by mail, but
Already replied by mail, but here's the latest version of the script with some extra options:
I just testet your Script
I just testet your Script Marco. It works really well and is pretty much self explaining, really fun to play around with! Whenever I need the beiging-color effect I now know where to look for it ;)
Never get low & slow & out of ideas
Hehe cool, thanks.
Hehe cool, thanks.
Hi Marco and Anubis Thank you
Hi Marco and Anubis
Thank you for the incredible effort. Both of your scripts work, though, it is the Marco's script that we find more refined and siuted to the task. In fact your script Marco, is perfect - if not for one thing :(
Let me explain.
The property that your script changes is the wirecolor. The problem is that I want to use proper vray material rather just wirecolor for both types of seats. what's more the material for each of the types of seats would usually be multi/sub to allow for the plastic and metal parts of the seat. How difficult is it to rewrite the script with this in mind? Is it possible at all?
Thank you,
Marek
This seemed like a fun
This seemed like a fun experiment, so I started playing with it and I might have got a bit carried away, but here's my take on this:
Running the script will create a rollout with a few options:
COLOR 1: the first color
COLOR 2: the second color (DUH!)
VARIATION: this adds randomness to the pattern. Setting it to 0 will result in half the seats using COLOR 1 and the other half using COLOR 2, while using 100 will produce a totally random pattern. Using something around 40-50 should produce the result you are looking for
LOW LIMIT: this can be used to force seats to use COLOR 2. So if you set it to 20%, every seat below 20% of the total height of the selection will use the COLOR 2 regardless of the VARIATION setting.
HIGH LIMIT: similar to LOW LIMIT, forces seats above this value to use COLOR 1
USE GRADIENT: Checking this box will have the script color the seats with a gradient instead of using just the two color.
To run just select a bunch of objects and hit START!.
I didn't test it much, nor dos it have much error checking, so if you have any problems let me know. And feel fry to modify as needed.
Quick draft code
Interesting question, there is something on-the-fly, maybe not perfect...
my recent MAXScripts RSS (archive here)