RetouchPRO

Go Back   RetouchPRO > Tools > Software > Photoshop Help
Register Blogs FAQ Site Nav Search Today's Posts Mark Forums Read Chat Room


Photoshop Help Tips, questions, and solutions for Adobe Photoshop users
One tip or question per thread, please

Reply
 
Thread Tools
  #1  
Old 11-11-2009, 09:26 AM
Git Git is offline
Junior Member
 
Join Date: Nov 2009
Posts: 3
Time stamp with PS CS4?

I would like to add a time stamp a copies of my edited photos for use in photoalbums (I only use copies for this purpose not to ruin my optimized originals).

Is there a way to do this in PS where you can just copy the exif information onto the text layer?

If you could make this as a batch process it would of course be even better.

Thank you,

Git
Reply With Quote
  #2  
Old 11-11-2009, 10:57 AM
csuebele's Avatar
Member
 
Join Date: Oct 2009
Location: Los Angles area
Posts: 85
Re: Time stamp with PS CS4?

You can add a date/time stamp through lightroom in the print module. I'm still learning lightroom, so don't know how to do it well. I put a time stamp on my images using photoshop scripting, which is a bit more involved, but I can make it just the way I want using javascript.
Reply With Quote
  #3  
Old 11-11-2009, 11:38 AM
Git Git is offline
Junior Member
 
Join Date: Nov 2009
Posts: 3
Re: Time stamp with PS CS4?

Thank you very much for your answer. Unfortunately I don't own the Ligthroom software but only PS CS4 + Bridge.


Git
Reply With Quote
  #4  
Old 11-11-2009, 11:57 AM
Doug Nelson's Avatar
Janitor
 
Join Date: Aug 2001
Posts: 6,163
Blog Entries: 21
Re: Time stamp with PS CS4?

Not a plugin, but if you make a folder with the images you want stamped this might help
http://www.kozasoft.com/ps/
Reply With Quote
  #5  
Old 11-11-2009, 12:19 PM
csuebele's Avatar
Member
 
Join Date: Oct 2009
Location: Los Angles area
Posts: 85
Re: Time stamp with PS CS4?

Here is a script file you can use. Unzip the attachement and place the file timestamp in the subfolder of photoshop CS4\presets\scripts. Start photoshop. Open an image and then go to file>scripts>timestamp. This will place the date and time in the lower right corner. You can and should add this to an action. After you run the script in the action, you can adjust the layer style and such to make it more visable.
Attached Files
File Type: zip timestamp.ZIP (647 Bytes, 351 views)
Reply With Quote
  #6  
Old 11-17-2009, 09:09 AM
Git Git is offline
Junior Member
 
Join Date: Nov 2009
Posts: 3
Re: Time stamp with PS CS4?

Thank you both.
Git.
Reply With Quote
  #7  
Old 05-03-2010, 10:24 AM
Junior Member
 
Join Date: Nov 2009
Posts: 1
Re: Time stamp with PS CS4?

csuebele

The script works great! Is there anyway to change it so the timestamp shows the "seconds" as well? So it read HH:MM:SS not just HH:MM. Thanks!
Reply With Quote
  #8  
Old 05-03-2010, 01:36 PM
csuebele's Avatar
Member
 
Join Date: Oct 2009
Location: Los Angles area
Posts: 85
Re: Time stamp with PS CS4?

Quote:
Originally Posted by EngineNo9 View Post
csuebele

The script works great! Is there anyway to change it so the timestamp shows the "seconds" as well? So it read HH:MM:SS not just HH:MM. Thanks!
Yes, open the script in the extendscript toolkit (comes with photoshop) and on line 24 change the very last number from 35 to 38). so line 24 should look like this (all one line):

Code:
timeDate = dateString.substring(24,26) + '-' + dateString.substring(27,29) + '-' + dateString.substring(19,23) + '  ' + dateString.substring(30,38)

I would also change the first line to read:

Code:
#target photoshop
Chuck
Reply With Quote
  #9  
Old 03-31-2011, 12:56 PM
Junior Member
 
Join Date: Mar 2011
Posts: 4
Re: Time stamp with PS CS4?

Hi, cool stuff works great.

About the Timestamp text, i tried to put put a different font/color to the timestamp by using something like this:

textItemRef.fontcolor (f48009)

or

textItemRef.fontcolor (244,128,9)

both don't work, i guess i should create a "color" object.

A bit hard to find info online...

any ideas?

Thanks
Reply With Quote
  #10  
Old 03-31-2011, 04:35 PM
csuebele's Avatar
Member
 
Join Date: Oct 2009
Location: Los Angles area
Posts: 85
Re: Time stamp with PS CS4?

Quote:
Originally Posted by whoisjian View Post
Hi, cool stuff works great.

About the Timestamp text, i tried to put put a different font/color to the timestamp by using something like this:

textItemRef.fontcolor (f48009)

or

textItemRef.fontcolor (244,128,9)

both don't work, i guess i should create a "color" object.

A bit hard to find info online...

any ideas?

Thanks
Yes, you have to create a color object such as:

Code:
var foregroundC = new SolidColor();
	foregroundC.rgb.red = 0;
	foregroundC.rgb.green = 0;
	foregroundC.rgb.blue = 0;
	foregroundColor = foregroundC;
Reply With Quote
  #11  
Old 03-31-2011, 10:11 PM
Junior Member
 
Join Date: Mar 2011
Posts: 4
Re: Time stamp with PS CS4?

cool, thanks a lot !!!

so, I have this line running in the script:

textItemRef.color(foregroundColor)

when running:
it says: Error 24: SolidColor() is not a function, Line 42 ->
textItemRef.color(foregroundColor)

I also tried with:

textItemRef.fontcolor(foregroundColor)

when running: same error.

??

Jian, Thanks
Reply With Quote
  #12  
Old 03-31-2011, 10:42 PM
csuebele's Avatar
Member
 
Join Date: Oct 2009
Location: Los Angles area
Posts: 85
Re: Time stamp with PS CS4?

The code I gave in my earlier post changes the foreground color. It is used prior to creating a text layer. The text should then use whatever color the foreground color is set to. If you want to change a text layer's color after the fact, you can use the scriptListener plugin and record changing the color, then copy and pasting from the log file it creates into your script. Here's what scriptListener produces when the color of a text layer is changed:

Code:
var idsetd = charIDToTypeID( "setd" );
    var desc22 = new ActionDescriptor();
    var idnull = charIDToTypeID( "null" );
        var ref5 = new ActionReference();
        var idPrpr = charIDToTypeID( "Prpr" );
        var idTxtS = charIDToTypeID( "TxtS" );
        ref5.putProperty( idPrpr, idTxtS );
        var idTxLr = charIDToTypeID( "TxLr" );
        var idOrdn = charIDToTypeID( "Ordn" );
        var idTrgt = charIDToTypeID( "Trgt" );
        ref5.putEnumerated( idTxLr, idOrdn, idTrgt );
    desc22.putReference( idnull, ref5 );
    var idT = charIDToTypeID( "T   " );
        var desc23 = new ActionDescriptor();
        var idClr = charIDToTypeID( "Clr " );
            var desc24 = new ActionDescriptor();
            var idRd = charIDToTypeID( "Rd  " );
            desc24.putDouble( idRd, 230.000001 );//red rgb value goes here
            var idGrn = charIDToTypeID( "Grn " );
            desc24.putDouble( idGrn, 17.140078 );//green rgb value goes here
            var idBl = charIDToTypeID( "Bl  " );
            desc24.putDouble( idBl, 17.140078 );//blue rgb value goes here
        var idRGBC = charIDToTypeID( "RGBC" );
        desc23.putObject( idClr, idRGBC, desc24 );
    var idTxtS = charIDToTypeID( "TxtS" );
    desc22.putObject( idT, idTxtS, desc23 );
executeAction( idsetd, desc22, DialogModes.NO );
Reply With Quote
  #13  
Old 03-31-2011, 11:26 PM
Junior Member
 
Join Date: Mar 2011
Posts: 4
Re: Time stamp with PS CS4?

//Change the foreground color----------------------------------------------------
var foregroundC = new SolidColor();
foregroundC.rgb.red = 244;
foregroundC.rgb.green = 128;
foregroundC.rgb.blue = 9;
foregroundColor = foregroundC;
//------------------------------------
var dateString = ''
var timeDate = ''

for (var i = 0; i <docRef.info.exif.length; i++)
{
dateString = docRef.info.exif[i].toString()

if (dateString.substring(0,18) == 'Date Time Original')
{
timeDate = '2011' + ' / ' + dateString.substring(27,29) + ' / ' + dateString.substring(24,26) + ' ' + dateString.substring(30,35)
}
}

var artLayerRef = docRef.artLayers.add()
artLayerRef.kind = LayerKind.TEXT
var textItemRef = artLayerRef.textItem
textItemRef.position = [inW,inH]
//else {textItemRef.position = [2240,3100]}
textItemRef.justification = Justification.RIGHT
textItemRef.size = 16
textItemRef.contents = timeDate
artLayerRef.name = 'timestamp'
------------
when I run this, text came out to be black, and foreground color changed to what I wanted.

I am running photoshop cs5, I imagine there should be a simple property set like:

textItemRef.color = foregroundColor *or something....

Thanks again for your lightning fast help!!!
Reply With Quote
  #14  
Old 04-01-2011, 09:26 AM
csuebele's Avatar
Member
 
Join Date: Oct 2009
Location: Los Angles area
Posts: 85
Re: Time stamp with PS CS4?

If that is the case, I would put the bit of code I posted about changing the color after the fact at the end of the script, and change the color values to what you want. It also might be that when you run the script, you have the text tool selected and the color remains as is and is not affected by a change in the foreground color.
Reply With Quote
  #15  
Old 04-01-2011, 11:27 AM
andrewrodney's Avatar
RetouchPRO LIVE Guest Artist
 
Join Date: May 2010
Location: Santa Fe
Posts: 466
Re: Time stamp with PS CS4?

Coming into this late but I wanted to point out, you can do this using File Info which brings up all the EXIF data fields you can view and edit. There are a number of fields you could enter this data: IPCT> Date Created, Origin Video Data>Date shot . Same with Audio Data. All have a cool little calendar popup to enter the data. You can make a template of this if you want, import into doc’s etc.
Reply With Quote
  #16  
Old 04-01-2011, 11:28 AM
Junior Member
 
Join Date: Mar 2011
Posts: 4
Re: Time stamp with PS CS4?

Great, Thanks, I been playing around, recorded an Action to change font and color, not perfect yet, but getting there.

Thanks a lot

Jian
Reply With Quote
  #17  
Old 05-06-2011, 04:41 AM
Junior Member
 
Join Date: May 2011
Posts: 1
Re: Time stamp with PS CS4?

Quote:
Originally Posted by csuebele View Post
Here is a script file you can use. Unzip the attachement and place the file timestamp in the subfolder of photoshop CS4\presets\scripts. Start photoshop. Open an image and then go to file>scripts>timestamp. This will place the date and time in the lower right corner. You can and should add this to an action. After you run the script in the action, you can adjust the layer style and such to make it more visable.
How do I add this to an action?

Last edited by brolis13; 05-06-2011 at 05:11 AM.
Reply With Quote
  #18  
Old 05-06-2011, 07:41 AM
csuebele's Avatar
Member
 
Join Date: Oct 2009
Location: Los Angles area
Posts: 85
Re: Time stamp with PS CS4?

Quote:
Originally Posted by brolis13 View Post
How do I add this to an action?
Create a new action, run the script, stop the action.
Reply With Quote
  #19  
Old 12-16-2011, 11:18 AM
Junior Member
 
Join Date: Dec 2011
Posts: 1
Re: Time stamp with PS CS4?

Coming into this late, and I dont know if this was answered or not but, I found out how to change the font color, first set the foreground and dont forget that "foregroundC" is now an object

Code:
var foregroundC = new SolidColor();
			foregroundC.rgb.red = 255;
			foregroundC.rgb.green = 255;
			foregroundC.rgb.blue = 255;
			foregroundColor = foregroundC;
so then in this line, you can refer to that object:

Code:
textItemRef.color= foregroundC
I put that under the line for font size and it worked.
Reply With Quote
  #20  
Old 12-17-2011, 09:58 AM
DannyRaphael's Avatar
Moderator
Patron
 
Join Date: Mar 2002
Location: Near Seattle, Washington, USA
Posts: 6,217
Re: Time stamp with PS CS4?

Quote:
Originally Posted by dcast99 View Post
Coming into this late, and I dont know if this was answered or not but, I found out how to change the font color, first set the foreground and dont forget that "foregroundC" is now an object

Code:
var foregroundC = new SolidColor();
            foregroundC.rgb.red = 255;
            foregroundC.rgb.green = 255;
            foregroundC.rgb.blue = 255;
            foregroundColor = foregroundC;
so then in this line, you can refer to that object:

Code:
textItemRef.color= foregroundC
I put that under the line for font size and it worked.
It's never too late to share knowledge. Welcome to Retouch Pro and thanks for contributing.
Reply With Quote
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Help with animated gif in CS4 Lee_Hitsugaya Photo Retouching 1 09-04-2009 05:47 PM
Digital Velvia Panel for CS4 gmitchel Software 2 08-23-2009 07:20 PM
CS4 Panel for Diffuse Glows gmitchel Software 0 08-20-2009 09:51 PM
Tone-Based Mask Panel for CS4 gmitchel Software 4 08-14-2009 08:04 PM
Beta Available for Photoshop CS4 Sharpening Panels gmitchel Software 0 08-01-2009 01:57 PM


All times are GMT -6. The time now is 12:31 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.3.2
Copyright © 2008 Doug Nelson. All Rights Reserved