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 )

2 thoughts on “Particle expression script ….

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.