Faster Match Color

Upload photoshop scripts, download photoshop scripts, discussion and support of photoshop scripts

Moderator: PS-Moderators

Faster Match Color

Postby Mikeal.Sim » Sun Sep 13, 2009 11:43 pm

I love what match color in can do, I’m just annoyed by how it works. I think its great that I can select layers from other documents…
I just wish it would auto select the document I’m working in!

Most often I just want to match it to the layer bellow the one I have selected (because I’m blending them together).
It can not be done in actions, so I made a script.


To Run:
Filter/Faster Color Match V1
This will use any selections made like normal.

Requirements:
CS3/CS4 (32/64)
Windows.. probably (Cant test for mac.)

Step by step:

Grabs the selected doc name to populate the “Source” drop down.
Selects the layer bellow, uses it’s layername to populate the “Layer” drop down.
Selects the previous layer,
runs match color.
Attachments
Faster_matchcolor.zip
copy the script to:
C:\Program Files\Adobe\Adobe Photoshop XXX\Presets\Scripts
(1.47 KiB) Downloaded 668 times
Mikeal.Sim
 
Posts: 46
Joined: Tue Jul 22, 2008 9:33 pm
Location: seattle

i have problem

Postby rajmeen » Fri Oct 16, 2009 9:52 am

when i m trying to run it error occur....and error is:"General photoshop error occured.This functionality may not available in this version of photoshop.The object "backwrd layer" is not currently available" so what it means?and why this error occured?
rajmeen
 
Posts: 46
Joined: Tue Oct 13, 2009 5:49 am

Postby Mikeal.Sim » Fri Oct 16, 2009 10:05 am

The script requires a min of two layer in the project with the top layer selected. I'm guessing the error is because that's not the case.

What its trying to do is color match the selected layer with the one below it using the default settings. It basically just auto executes color match.

if you keep getting that error let me know.
Mikeal.Sim
 
Posts: 46
Joined: Tue Jul 22, 2008 9:33 pm
Location: seattle

Postby rajmeen » Fri Oct 16, 2009 10:44 am

thankx for informing me.....and ya i m not getting error now
rajmeen
 
Posts: 46
Joined: Tue Oct 13, 2009 5:49 am

Postby rajmeen » Thu Nov 05, 2009 11:13 am

here is it posssible that i want to open match color dialog box and it will display preview of all statistics???????????
rajmeen
 
Posts: 46
Joined: Tue Oct 13, 2009 5:49 am

Postby Mikeal.Sim » Tue Nov 10, 2009 1:48 pm

sorry didn't get notified of your reply

yes you can, by running match color normally.
Image>adjustments>match color

Whatever your last settings are will be the default the next time you run it. Thus it will also be the default for my script.
Mikeal.Sim
 
Posts: 46
Joined: Tue Jul 22, 2008 9:33 pm
Location: seattle

Postby rajmeen » Wed Nov 11, 2009 4:00 am

but i want to do it via script actually i want to open one other dialogbox after clicking on loadstatistics which is match color


and all thing will be performed through a scripts

so is it possible??????
rajmeen
 
Posts: 46
Joined: Tue Oct 13, 2009 5:49 am

Postby Mikeal.Sim » Wed Nov 11, 2009 8:52 am

so the work flow would be:
script/pick statistics file/auto run match color

yeah and it would be easy to do, and I'd help you more with that if my computer didn't stop working.

I remember when I recorded matchcolor as a action and used xbit's action to java script that it gave functions for loading statistic files. that's about all I can tell you at this time.

I'm certain if you get mike Mike Hale or xbit to look at my script they can do it for you.
Mikeal.Sim
 
Posts: 46
Joined: Tue Jul 22, 2008 9:33 pm
Location: seattle

Postby rajmeen » Wed Nov 11, 2009 9:58 am

thanx for reply....but please can you please give your script with the changes that i need because i dont understand which type of changes are made???
rajmeen
 
Posts: 46
Joined: Tue Oct 13, 2009 5:49 am

Postby Mike Hale » Wed Nov 11, 2009 4:01 pm

This change will let the user pick a statistic file

try{
executeAction(sTID('matchColor'), desc1, DialogModes.ALL);
}catch(e){}
Mike Hale
Site Admin
 
Posts: 4325
Joined: Fri Sep 30, 2005 10:52 pm
Location: USA

Postby Mikeal.Sim » Wed Nov 11, 2009 5:37 pm

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.
Mikeal.Sim
 
Posts: 46
Joined: Tue Jul 22, 2008 9:33 pm
Location: seattle

Postby Mike Hale » Wed Nov 11, 2009 6:26 pm

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 all
var 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 );
}
Mike Hale
Site Admin
 
Posts: 4325
Joined: Fri Sep 30, 2005 10:52 pm
Location: USA

Postby Mikeal.Sim » Wed Nov 11, 2009 8:22 pm

Yup, I think that should do it.
Mikeal.Sim
 
Posts: 46
Joined: Tue Jul 22, 2008 9:33 pm
Location: seattle

Postby rajmeen » Fri Nov 13, 2009 5:40 am

thanx to reply..........but i am not understood where i put this code because occurs.so please help meeeeeeeeeee
rajmeen
 
Posts: 46
Joined: Tue Oct 13, 2009 5:49 am

Postby Mike Hale » Fri Nov 13, 2009 2:34 pm

It's a different script that runs by it's self. It is not added to faster_matchcolor
Mike Hale
Site Admin
 
Posts: 4325
Joined: Fri Sep 30, 2005 10:52 pm
Location: USA


Return to Photoshop Scripts

Who is online

Users browsing this forum: No registered users and 1 guest