var b = fw.getDocumentDOM().pathAttributes.brush; if (b && b.softness){ b.softness = Math.max(b.softness-10, 0); }