• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

How I can apply Oil Paint filter with JavaScript in Photoshop

New Here ,
Dec 23, 2016 Dec 23, 2016

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. 

TOPICS
Actions and scripting

Views

667

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Adobe
Community Expert ,
Dec 24, 2016 Dec 24, 2016

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

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Dec 25, 2016 Dec 25, 2016

Copy link to clipboard

Copied

a crossposting?

Here is the code a little bit cleaner:

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

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Dec 30, 2016 Dec 30, 2016

Copy link to clipboard

Copied

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.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Dec 30, 2016 Dec 30, 2016

Copy link to clipboard

Copied

LATEST

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.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines