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.
Brush Scatter custom value (Javascript)
-
- Posts: 1
- Joined: Thu Jun 12, 2025 1:48 am
Re: Brush Scatter custom value (Javascript)
I thought I could just enable Script Listener, but it only records GUI actions without analyzing the logic in depth. For brush scatter, sometimes I need to directly use ActionDescriptor with the correct classID like "scatter" or "brush", or load a preset and override. I have to figure it out by trial and error, because this API is not fully documented by Adobe.