top of page

nParticles, and xGen expressions

nParticle Creation Expression: to make instanced objects different radius -> for collision purposes

One for CustomIndex -> for instancing differe molecules

one for radiusPP. -> first must break connection at RadiusPP's original expression.

float $random = rand(0,3);

CustomIndex = $random;

if ($random < 1 )

{

radiusPP = .25;

}

else if ($random >= 1 && $random < 2 )

{

radiusPP = 5;

}

else

{

radiusPP = 1.5;

}

Under offset: to bob spheres up and down

$a = ((50 - $frame) / 24);

.5*sind($a * 360 + rand(-180,180))* rand(-.05, .05)

Under Frame: To loop a 60frame animation

$a=(($frame)%60) +1;

$a


Featured Posts
Check back soon
Once posts are published, you’ll see them here.
Recent Posts
Archive
Search By Tags
No tags yet.
Follow Us
  • Facebook Basic Square
  • Twitter Basic Square
  • Google+ Basic Square
bottom of page