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...

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...

Random 90 Degree rotations in MASH

Add random 90 degree rotations to all MASH objects. To use the code, simply copy and paste it into the Python node. The below variation will give you random Y rotation, you can use the same idea to adjust the X and Z rotations as well if you need to. Python import...

Maya Tip: In View Messages

Maya 2014 added some helpful in-view messages to aid users, here’s an example of how they can be used: The built in messages are almost universally useless for professionals, however, if you’re a tool developer, you can make your own messages by using the...

Maya Tip: Select faces based on a map

I discovered this by accident today and it’s a real treat of a time saver. To select components based on a map simply do the following: 1. Double click on the Pain Selection Tool. 2. Scroll down to Attribute Maps and roll it out. 3. Open the Import roll out. 4....