Skip to main content
Participant
December 23, 2016
Question

How I can apply Oil Paint filter with JavaScript in Photoshop

  • December 23, 2016
  • 2 replies
  • 863 views

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. 

This topic has been closed for replies.

2 replies

Participant
December 30, 2016

and 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.

pixxxelschubser
Community Expert
Community Expert
December 30, 2016

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.

Chuck Uebele
Community Expert
Community Expert
December 24, 2016

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 );

pixxxelschubser
Community Expert
Community Expert
December 25, 2016

a crossposting?

Here is the code a little bit cleaner:

https://www.ps-scripts.com/viewtopic.php?f=77&t=24481