Adverti horiz upsell

Particle Setup for Maya 1.1.0 (maya script)

Automates common particle scripting tasks.

License
Button download
2,107 Downloads

Compatibility

  • 2012, 2011, 2010, 2009, 2008

Operating Systems

  • Mac
  • Windows

History

Created:10/26/2011
Last Modified:02/29/2012
File Size: 5.33 KB

Keywords

dnoise, goals

A wee script that automates a bunch of the tasks I find myself doing over and over again with particles (plus a couple of toys just for fun).
CreativeCrash won't let me bin the first image above, it's an old version, ignore it.
 
Usage:
Select your particles (nParticles or old-school particles) and click the buttons. Particle Setup will create a bunch of attributes and hook them up to scripts.
Features:
The interface will recover any previously set values, just select the particle transform before opening the interface.
All changes are live, just keep your particles selected, generally there will be no need to edit the scripts, just move the sliders or edit the 'Extra Attributes' Particle Setup creates on the particleShape node.
Attributes are animatable.
idPP: random id for particle instances.
radiusPP: random (or not) scale for particles. Weighting will make more small particles then large (using a gaus function). It's good for dust, sand, soil and things such as that. When this option is enabled Radius Max will control the standard deviation. 
GoalUV: sets up random goalUVs for when using goals.
Random Rotation: Adds random creation rotation for particles and, if needed, drifting rotation for animation (independent XYZ controls).
Start Frame: Random start frame, useful when using model sequences as instances.
And a couple of toys which you may or may not find useful:
Secondary Noise: Cool noise (dNoise) for particles. It effectively organises the particles into 3d currents, but can also be used for swarming effects.
Particle Trails: Leave particle breadcrumbs everywhere your hero particles go. Select a particle group (also works with curve flows) and click the button. Be aware, turn your emitter right down otherwise you'll end up with thousands of particles created every frame. Adjust the step size to change the density of the particle trail. See video below.
Manual Goaling: Just for fun, staggered goaling, set up manually for full control, be warned, it's slow!
Manual goaling will require your scripting know-how to create more then one goal. You need to uncomment the Manual goaling interface code in the script in order to use this feature, as it's most certainly only for people who know their mel.

 
Remember to set the "Instancer Replacement (Geometry)" menus on the particleShape node to the attributes created by Particle Setup.
 
Particle trail example: https://dl.dropbox.com/u/64466186/trails_h264.mov - in this example there are 5 hero particles, and the trail particles live for 1 second. Gravity is off!

Let me know if you have any problems.

Version history:

1.1 - Added Particle Trails. Hidden Manual Goaling (uncomment in the script to use it). 
1.0.3 - Fixed a bug that stopped radiusPP working with old particles and nParticles that weren't set to 'balls'.
1.0.2 - Added a 'weighting' option to radiusPP (which will result in more small particles then large ones).
1.0.1 - Fixed a bug that prevented the script from running in Maya 2010 and below.
1.0 - Initial release.



Please use the Bug System to report any bugs.
Please use the Feature Requests to give me ideas.
Please use the Support Forum if you have any questions or problems.
Please rate and review in the Review section.

People who favorited this item:

  • Vojtech Lacina
    Vojtech Lacina
  • xtvjxk
    xtvjxk
  • rushcg
    rushcg
  • 77me
    77me
  • RickToxik
    RickToxik
  • Matt Lumb
    Matt Lumb
  • Juanjo Bernabeu
    Juanjo Bernabeu
  • joed8349
    joed8349
  • pzman3d Yang
    pzman3d Yang
  • angelo gadelha
    angelo gadelha
  • forsgren
    forsgren
  • hmy911
    hmy911
  • Ivan Arsic
    Ivan Arsic
  • craig penn
    craig penn
  • kalesha
    kalesha
  • biggaman
    biggaman
  • hua fang
    hua fang
  • Alex Veresov
    Alex Veresov
  • jerrykyj
    jerrykyj
  • Lipe Azevedo
    Lipe Azevedo
  • Santi Gutierrez
    Santi Gutierrez
  • henk69
    henk69
  • sil_musashi
    sil_musashi
  • sepu
    sepu
  • richeliu
    richeliu
  • mourad rifai
    mourad rifai
  • nbreslow
    nbreslow
  • republicavfx
    republicavfx
  • Brian Elig
    Brian Elig
  • ChaosWolf
    ChaosWolf
  • ::bn8::
    ::bn8::
  • Max Steven
    Max Steven
  • stoian djjorgov
    stoian djjorgov
  • 鹏
  • Andrew Prewett
    Andrew Prewett
  • hypatia
    hypatia
  • M N
    M N
  • ytrox
    ytrox
  • ekork69
    ekork69
  • tony yang
    tony yang
  • mikethomson
    mikethomson
  • peng jiao
    peng jiao
  • kursat turkay
    kursat turkay
  • Georgee80
    Georgee80
  • Martin Ellis
    Martin Ellis