PDA

View Full Version : particle problem~~~


funwun
04-29-2004, 04:51 AM
when i create a particle
use
particle -n particle1;

and

add runtime expression

vector $pos = position;
vector $vel = velocity/2;
emit -o particle1
-pos ($pos.x) ($pos.y) ($pos.z)
-at velocity -vv ($vel.x) ($vel.y) ($vel.z)

but not effect~

what's wrong

the script 's position wrong?

rokandic
04-29-2004, 09:32 AM
If you just create a particle node and add a runtime expression, nothing will happen because runtime expression is run for every existing particle. Since you probably didn't connect it to any emitter or use emit command before (MEL script) that would cause the creation of particles, no particles existed beforehard and thus expression didn't run once.

Note that if you already had particles, such runtime expression would double the number of particles every frame.

-rok

CGTalk Moderation
01-18-2006, 03:00 AM
This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.