Skip to content

Instantly share code, notes, and snippets.

View ahules's full-sized avatar
🏠
Working from home

Ivan Maerle ahules

🏠
Working from home
  • codeminders
  • Ukraine
View GitHub Profile
@ahules
ahules / brush-settings.jsx
Last active October 12, 2020 17:32
Set brush settings jsx adobe photoshop
// Took here, just refactored and add ability to set mode
// https://community.adobe.com/t5/photoshop/q-is-accessible-get-set-for-brush-settings-lock-features/m-p/9509960?page=1
setBrushSettings({opacity: 100, mode: "normal", hardness: 100, flow: 100, diameter: 10});
function setBrushSettings(params) {
try {
var refGet = new ActionReference();
refGet.putProperty(charIDToTypeID("Prpr"), stringIDToTypeID("tool"));