1) Use the pathing tool to add rectangles or polygonal shapes to the GM layer. 2) Free hand and circles not supported. 3) Recommend you draw with fill color, this will turn transparent if the path is a supported path. That’s it. The API will look to do something based on tokens entering that shape on the object layer. It will check for a Macro with a name = to the path color (i.e. macro named ‘#FF0000’) activeTrap = function(hazzard, token) {
var objValues = getObjValue(hazzard, objExtractKeysPath),
featureMacro = findObjs({
_type: 'macro',
name: objValues.stroke
})[0];
//DO SOMETHING WITH 'featureMacro'
log(hazzard)
log(token)
log(featureMacro)
},