Select Page

Maya | KillTurb

This maya script was written in python and tested on windows in maya 2017 and allows you to:

 

  • create a kill volume for maya particles and nparticles
  • create a turbulence field and change the phasing on each axies

Kill Volume

Select any particle shape node and click “CREATE KILL VOLUME”.
If no particle shape node is selected, an error message will show up.

This will create the kill volume, which is a standard uniform field as a volume and connect it to the selected particle system. By default the particles will live inside the volume, if you want them to be alive outside the volume you only need to turn off the checkbox “VOLUME EXCLUSION” on the kill volume. This way the particles will die inside the volume. As the kill volume is a standard volume uniform field, you can switch the volume shape.

On the particle system, the lifespan will be set to lifespanPP only and insert a runtime before dynamics expression. In order for the kill volume to work, the particles lifespan must be set to lifespanPP!

TURBULENCE FIELD

Select any particle shape node and click “CREATE TURBULENCE FIELD”.
If no particle shape node is selected, an error message will show up.

This will create a standard turbulence field and connect it to the selected particle system.
With the turbulence field selected, you can change the phasing very easily. Select any turbulence field then select the multiplier and the amount and click on “UPDATE”.
An expression will be inserted in each of the phasing axes and multiplied by the selection.

Download & Installation

When downloading KillTurb you get a .zip file containing:

  • vuvey_KillTurb_v01.py
  • vuvey_KillTurb_v01.pyc

 

If you just want to use the tool, copy the .pyc file into your maya scripts directory: %USERPROFILE%/DOCUMENTS/MAYA/SCRIPTS
In maya insert this in the python command line:  import vuvey_KillTurb_v01

 

The other file is the python source code, in case you want to take a look at the code. The source code is somewhat documented enough to give you a good understanding what’s going on.

 

In case you have any feedback/suggestions drop a line!

THIS SCRIPT CAN BE USED FOR COMMERCIAL PURPOSE. BY DOWNLOADING YOU AGREE THAT THIS SCRIPT IS PROVIDED “AS IS” AND ANY WARRANTIES ARE DISCLAIMED.

© 2020 vuvey All rights reserved. | Imprint