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)
-   -   MEL within expression (https://simplymaya.com/forum/showthread.php?t=10756)

lovefailer 03-03-2004 09:12 AM

MEL within expression
 
Hi

I am working on particles with curve flow. In the runtime expr, I need to query the information about the curve 's tangent at the project point of the particle onto the curve. Then I used a MEL cmd "pointOnCurve" to get the info.

The prob is that this cmd is called for each particle every frame. In other word, when I have just abt 500 pats, the scene seem to hang oredi.

I tried an alternative: add an vectorArray attr (per-particle) and create a node using API to compute the tangent needed and connect to particle node. However, it seems that I can't connect from my node to the per-part attr.

Is there a way to speed up the evaluation of the cmd pointOnCurve??? (when i take out this cmd, the animation is damn much faster)

Any help is kindly appreciated


All times are GMT. The time now is 10:08 PM.

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