Faster Match Color

Upload Photoshop Scripts, download Photoshop Scripts, Discussion and Support of Photoshop Scripts

Moderators: Tom, Kukurykus

Mike Hale

Faster Match Color

Post by Mike Hale »

This change will let the user pick a statistic file

try{
executeAction(sTID('matchColor'), desc1, DialogModes.ALL);
}catch(e){}
Mikeal.Sim

Faster Match Color

Post by Mikeal.Sim »

Mike, doesn't that just open the regular colormatch UI?


I would think think:
openDialog()
however that returns the selected file name, assign to variable, insert into the match color function.

rajmeen, my computer wont turn on. I cant do anything more then this.
Mike Hale

Faster Match Color

Post by Mike Hale »

Yes, it opens the main dialog. I must have mis-understood the question. You can't script opening any secondary dialogs in a GUI dialog.

This will let the user pick a statistic file then run match color using that file. I don't know enough about how match color works( I don't use it ) to know if this does what rajmeem wants.



Code: Select allvar staFile = File.openDialog("Choose a statistics file", '*.sta', false );
matchColor( staFile );
function matchColor( statistics ) {// statistic (sta) file object
   var desc = new ActionDescriptor();
    desc.putInteger( charIDToTypeID('Lght'), 100 );
    desc.putInteger( charIDToTypeID('ClrR'), 100 );
    desc.putInteger( charIDToTypeID('Fade'), 0 );
    desc.putBoolean( charIDToTypeID('fsel'), true );
    desc.putPath( charIDToTypeID('Srce'), statistics );
    executeAction( stringIDToTypeID('matchColor'), desc, DialogModes.NO );
}
Mikeal.Sim

Faster Match Color

Post by Mikeal.Sim »

Yup, I think that should do it.
rajmeen

Faster Match Color

Post by rajmeen »

thanx to reply..........but i am not understood where i put this code because occurs.so please help meeeeeeeeeee
Mike Hale

Faster Match Color

Post by Mike Hale »

It's a different script that runs by it's self. It is not added to faster_matchcolor