emitting particles from particles for spray

Discussions about the use of Realflow in Autodesk Maya
apoc519
Posts: 18
Joined: Mon Sep 11, 2006 6:56 am

emitting particles from particles for spray

Postby apoc519 » Sat Oct 21, 2006 12:27 am

i want to use realflow particles to emit spray particles but I can't get the new particle shape to inherit the orginal realflow particles velocity. Any ideas?


apoc519
Posts: 18
Joined: Mon Sep 11, 2006 6:56 am

emitting particles from particles for spray

Postby apoc519 » Sun Oct 22, 2006 10:20 am

i had to create a small script and plug it into a script node that runs each frame. Stupid but it works

float $count = `getAttr RealflowParticle_RealflowParticleShape.count`;

for( $i=1; $i<$count; ++$i )
{
float $pos[] = `getParticleAttr -at rfPosition ("RealflowParticle.pt[ + $i + ]")`;
float $vel[] = `getParticleAttr -at rfVelocity ("RealflowParticle.pt[ + $i + ]")`;
emit -object particle1
-position $pos[0] $pos[1] $pos[2]
-attribute velocity
-vectorValue ($vel[0] * rand(.9,1.4)) ($vel[1] * rand(.9,1.4)) ($vel[2] * rand(.9,1.4));
}


Return to “Autodesk Maya”

Who is online

Users browsing this forum: No registered users and 1 guest