Quantcast
Channel: Adobe Community : Popular Discussions - Photoshop Scripting
Viewing all articles
Browse latest Browse all 12244

How can I iterate through a range of parameter/values within a filter (using js)?

$
0
0

Using ExtendScript, I am able to find out the names of the filters and their various parameters:

 

var idAdNs = charIDToTypeID( "AdNs" );

    var desc49 = new ActionDescriptor();

    var idDstr = charIDToTypeID( "Dstr" );

    var idDstr = charIDToTypeID( "Dstr" );

    var idUnfr = charIDToTypeID( "Unfr" );

    desc49.putEnumerated( idDstr, idDstr, idUnfr );

    var idNose = charIDToTypeID( "Nose" );

    var idPrc = charIDToTypeID( "#Prc" );

    desc49.putUnitDouble( idNose, idPrc, 15.000000 );

    var idMnch = charIDToTypeID( "Mnch" );

    desc49.putBoolean( idMnch, true );

    var idFlRs = charIDToTypeID( "FlRs" );

    desc49.putInteger( idFlRs, 3171354 );

executeAction( idAdNs, desc49, DialogModes.NO );

 

If I wanted to iterate through a range (%/Amount) from 1 through 20 at predetermined increment, how could I do that?  How could I do that from an external text file that contains the values?

 

Thank you.


Viewing all articles
Browse latest Browse all 12244

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>