I want to create a lazer that has its particles die or go invisible when they collide with objects. I thought this expression would work but it obviously didn't. I've never really used expressions before so if anyone could tell me what is wrong with it that would be awsome...
if (eventCount == 0)
opacityPP = <<1>>;
else if (eventCount == 1)
opacityPP = <<0>>;
Error: Connection not made: 'particleShape1.eventCount' -> 'particleShape1.input'. Incompatible multi-attribute parent levels.
in maya help it said that eventCount is "Total number of events that have occurred for all particles of the object."