Skip navigation
RaquelWelch
Currently Being Moderated

JS Scripting content-aware fill?

Aug 16, 2012 1:20 PM

Tags: #photoshop #script #javascript #scripting #photoshop_scripting

Is it possible? There is no mention of content-aware fill in JS Scripting reference 5 + 6.

 
Replies
  • JJMack
    3,512 posts
    Jan 9, 2006
    Currently Being Moderated
    Aug 16, 2012 7:57 PM   in reply to RaquelWelch

    When there is nothing in the scripting guides think of the scritlistener plugin and the action manager code it records,

     

     

    // =======================================================

    var idFl = charIDToTypeID( "Fl  " );

        var desc12 = new ActionDescriptor();

        var idUsng = charIDToTypeID( "Usng" );

        var idFlCn = charIDToTypeID( "FlCn" );

        var idcontentAware = stringIDToTypeID( "contentAware" );

        desc12.putEnumerated( idUsng, idFlCn, idcontentAware );

        var idOpct = charIDToTypeID( "Opct" );

        var idPrc = charIDToTypeID( "#Prc" );

        desc12.putUnitDouble( idOpct, idPrc, 100.000000 );

        var idMd = charIDToTypeID( "Md  " );

        var idBlnM = charIDToTypeID( "BlnM" );

        var idNrml = charIDToTypeID( "Nrml" );

        desc12.putEnumerated( idMd, idBlnM, idNrml );

    executeAction( idFl, desc12, DialogModes.NO );

     

     

     
    |
    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points