Select Page

MASH API Examples

Maya 2017 Update 3 includes a new API to help quickly create MASH networks with Python. Below are 4 examples that will hopefully get you started. To use them, copy and paste the Python into the Script Editor, and then run the script. Python import MASH.api as mapi...

Shuffling MASH Points with the Python node

Say you want to create the above animation of random spokes moving about; to do this you’ll need to shuffle the MASH points, read on to find out why, and how. Let’s start with a grid distribution: As you can see, when MASH creates a grid distribution, all...

Multiple looping animations with the Instancer

The Time node in MASH is really useful for creating looping or offset animations inherited from an input model. Check out this tutorial for more on that. The problem is that the Time node is only available when MASH is creating an output mesh via the Repro node (this...

Getting Particle Positions with the MASH Python node

If for some reason you don’t want to plug your particle system directly into your MASH network you can get particle positions via the Python node like this. You’ll need to edit the name of the particle system in the Python script, but other then that, you...

Strange Attractors with MASH and Python

Here’s a quick and dirty implementation of a couple of strange attractors in MASH using the Python node. To use them simply copy and paste the Python into the Python node and click run (top right of the Python Editor). I used the Trails node in Join the Dots...