Expressions to scale, rotate and spin by Aziz Khan, Afghanistan
Step 8: Ok now if you see in (Per Particle (Array) Attributes) you will see new name, the name will appear according what name you have given in Attributes name, like the image below.
Step 9:
Right click in the box of Scale_new then choose (Creation Expression) and write the following expression.
float $anything= rand(6,3);
particleShape1.Scale_new= <<$anything,$anything,$anything,>>;
|
if you want to play with the size of objects you can play around the numbers on the rand,
Step 10:
Scroll up to find the (Instancer (Geometry Replacement) tab then on the (General Options) on the Scale drop down menu choose newly created name. In this case mine is (Scale_new).
Step 11:
Now, if you play then you will see some random sizes of objects are coming out of emitter. It’s time to deal with rotation of objects so let’s create another (Custom Attribute) like we did before for Scale, again go to (Add Dynamic Attributes) tab and do the same as we did before, but the name should be different since we are dealing with Rotation, I name it Rotation_new so you can go regardless with any name you prefer.
|
|
|