Friday, November 14th, 2008

Particle expression script ….

PARTICLES
A)Random Objects

1.    Create particle instancer with all the objects selected.
2.    Create custom attribute (custom_index) –float –per particle array
3.    Write creation expression – particleShape1.custom_index = rand(0,x) ( particleShape1 >change to particle name )

B)Random Scale for Instanced Objects

1. Create a new custom attribute (customScale) for the particle object -vector -per particle array
2. Write a creation expression for this new attribute.

particleShape1.customScale = rand(0.1,1); ( particleShape1 >change to particle name )

or

float $wateva = rand(1,2)
particleShape1.customScale = <<$wateva,$wateva,$wateva>> ( particleShape1 >change to particle name )

C)Random Orientation and Spinning Instanced Objects

1. Create new custom attribute (customRotation) for the particle object -vector -per particle array
2. And another (randomNumber) –float – per particle array
3. Write expressions for these:

Creation:

particleShape1.randomNumber = rand(-0.001,0.001); ( particleShape1 >change to particle name )

particleShape1.customRotation = <<rand(360),rand(360),rand(360)>> ( particleShape1 >change to particle name )

Posted by fangloong on November 14th, 2008 | Filed in - 作品 works |


2 Responses to “Particle expression script ….”

  1. November 19th, 2008 at 10:16 am

    cjinq said:

    alo .. it’s my turn to wish u happy birthday .. how is life in vietnam?

  2. November 19th, 2008 at 10:18 am

    fangloong said:

    One word ” tired ”
    Bro thx for the wish … all the best … hihi !!



Please leave a Comment