Brush Scatter custom value (Javascript)

Discussion of Photoshop Scripting, Photoshop Actions and Photoshop Automation in General

Moderators: Tom, Kukurykus

byxa
Posts: 2
Joined: Fri May 09, 2025 8:50 am

Brush Scatter custom value (Javascript)

Post by byxa »

hi guys, im looking for a javascript script that allows me to add a custom scatter value for the selected brush (via script).
im getting this from the listener.



// =======================================================
var idhostFocusChanged = stringIDToTypeID( "hostFocusChanged" );
var desc777 = new ActionDescriptor();
var idactive = stringIDToTypeID( "active" );
desc777.putBoolean( idactive, true );
var iddontRecord = stringIDToTypeID( "dontRecord" );
desc777.putBoolean( iddontRecord, true );
var idforceNotify = stringIDToTypeID( "forceNotify" );
desc777.putBoolean( idforceNotify, true );
executeAction( idhostFocusChanged, desc777, DialogModes.NO );

// =======================================================
var idhostFocusChanged = stringIDToTypeID( "hostFocusChanged" );
var desc778 = new ActionDescriptor();
var idactive = stringIDToTypeID( "active" );
desc778.putBoolean( idactive, false );
var iddontRecord = stringIDToTypeID( "dontRecord" );
desc778.putBoolean( iddontRecord, true );
var idforceNotify = stringIDToTypeID( "forceNotify" );
desc778.putBoolean( idforceNotify, true );
executeAction( idhostFocusChanged, desc778, DialogModes.NO );




i tried hard to extract part of the code, but nothing happens.
this code above is useless.