Select Page

Setting MASH Point positions with JSON

A while ago I was asked by how you can set MASH points using JSON – a fairly specific request, but it’s pretty easy because the MASH Placer node uses a JSON dictionary to store it’s painted points, so we can tap into that to set the positions (and...

MASH & Python & meshes – Part 2: Colour Sets

Following on from part 1, in this example we take things a small step further. Instead of just sampling the mesh for the closest normal to the MASH point, we sample the mesh for the closest point and normal, this call has the added benefit of also returning the...

MASH & Python & meshes – Part 1: Normals

There are many reasons you might want to access mesh information in a MASH network, we’ll take a look at two of those reasons here. In part 1 we’ll look at turning points off based on mesh normals. In part 2 we’ll look at setting point Ids based on...

Accessing MASH Point Data with the Maya API

Good news, MASH only uses Maya’s default data types, so all MASH data can be accessed via normal Maya APIs. Ordinarily this isn’t needed as MASH provides two built in ways to extract data: For the non scripter there’s the Breakout node, which can...

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