Rule-based MaxScript support
thinkingParticles offers full MaxScript support through special operators. MaxScript itself is very powerful and lets you create many amazing things. Together with thinkingParticles, Max Script is even more powerful.
In the example "Wire Setup" shown above, we used a Distance operator to measure the distance between two nodes (any 3ds Max geometry). As soon as those two objects come close to each other, a MaxScript is executed.
As you can see in the second illustration, thinkingParticles supports two levels of Max Script execution. Every thinkingParticles node can become active or inactive (based on rules) and each level has a MaxScript assigned to it. In this setup, the MaxScript operator turns the Spot01 on, when the distance falls into a certain range.
On the other hand, whenever the MaxScript operator becomes deactivated, another MaxScript is executed. In our example, the script just turns the light off again. This example of the spot light control was chosen, because it is easy to understand. There is almost no restriction on how you can use MaxScript with thinkingParticles. You can load a MaxScript of any size into the relevant slots of thinkingParticles.