Change an object's material on collision - Printable Version +- tyFlow Forum (https://forum.tyflow.com) +-- Forum: tyFlow Discussion (https://forum.tyflow.com/forum-1.html) +--- Forum: General Discussion (https://forum.tyflow.com/forum-2.html) +--- Thread: Change an object's material on collision (/thread-3204.html) |
Change an object's material on collision - elpin - 07-26-2022 Hi! I'm wondering, is it possible to set up a custom variable inside the tyFlow that gets changed as the particle collides with an object and at the same time having this particle accessible from within 3dsmax Track View (Curve Editor)? The problem I'm trying to solve is that I have particles bouncing around in a closed box and every time any of the particles hit a column inside the box, that column needs to change color to white for just a frame or two (imagine a bulb turns on every time it gets hit). So my idea, as written above, is to set up some variable in the tyFlow and every time there's a collision of a particle with the object (done by PhysX Collision), the variable would change into 1 and then 2 frames later would go back to 0. And then there's a VRay Blend material assigned to the column with a mix value between the "turned off" and "turned on" materials and this mix value is then wired to the custom variable set up by tyFlow, switching from 0 to 1. Actually, it would switch from 0 to 100, but that's beside the point. Is such a thing even possible? Thanks a lot for any solutions or pointers! |