Simply Maya User Community

Simply Maya User Community (https://simplymaya.com/forum/index.php)
-   Dynamics & Special Effects (https://simplymaya.com/forum/forumdisplay.php?f=33)
-   -   opacityPP expresion (https://simplymaya.com/forum/showthread.php?t=19070)

soc11lax98 13-11-2005 10:35 PM

opacityPP expresion
 
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[0]'. 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."

http://localhost:4449/Maya7.0/en_US/...html?tutorials

soc11lax98 16-11-2005 08:11 PM

http://www.highend3d.com/boards/inde...owtopic=215182


All times are GMT. The time now is 12:46 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Simply Maya 2018