Copy link to clipboard
Copied
How I can apply Oil Paint filter with JavaScript in Photoshop?
I could not find anywhere, how to implement this filter in script. Does anyone know how to do that?
Thank you.
Copy link to clipboard
Copied
Have you tried using the scriptlistener plugin to generate Action Manager code:
var idoilPaint = stringIDToTypeID( "oilPaint" );
var desc4 = new ActionDescriptor();
var idlightingOn = stringIDToTypeID( "lightingOn" );
desc4.putBoolean( idlightingOn, true );
var idstylization = stringIDToTypeID( "stylization" );
desc4.putDouble( idstylization, 3.100000 );
var idbrushScale = stringIDToTypeID( "brushScale" );
desc4.putDouble( idbrushScale, 2.900000 );
var idmicroBrush = stringIDToTypeID( "microBrush" );
desc4.putDouble( idmicroBrush, 9.200000 );
var idLghD = charIDToTypeID( "LghD" );
desc4.putInteger( idLghD, -60 );
var idspecularity = stringIDToTypeID( "specularity" );
desc4.putDouble( idspecularity, 1.300000 );
var idcleanliness = stringIDToTypeID( "cleanliness" );
desc4.putDouble( idcleanliness, 1.600000 );
executeAction( idoilPaint, desc4, DialogModes.NO );
Copy link to clipboard
Copied
a crossposting?
Here is the code a little bit cleaner:
Copy link to clipboard
Copied
Chuck Uebele and pixxxel schubser Thank for a prompt respond.
Where I can find detail documentation about this?
I can not check this as correct because I did not tried yet, it turns out that we do not need oil paint.
but as soon as I get time I will experimenting with this.
Copy link to clipboard
Copied
Hmmh?
You ask for OilPaint and you do not need???
And why you cannot check this?
Copy the code in ESTK
target PS
(or save the codelines as "YourScriptName.jsx" in PS script Folder)
open PS with an image
run code lines in ESTK (or run the script from PS: File --> Scripts --> YourScriptName)
There is no good documentation for this.
But a search here in Forum for Script Listener Plugin or Action Manager Code will be helpful for you.