SimplyMaya Forums

Welcome to the forum, feel free to ask questions here.

Register FAQ Members List Calendar Mark Forums Read

New Thread
Thread Tools
Old 03-03-2004, 08:12 AM   #1
Registered User
Join Date: Aug 2003
Posts: 6
Default MEL within expression


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
lovefailer is offline   Reply With Quote
New Thread

« Previous Thread | Next Thread »

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
MEL headache! happymat27 Members Lounge 5 05-12-2010 08:43 AM
MEL headache!! happymat27 Mel Scripts & Programming 1 03-12-2010 03:41 PM