![]() |
| |||||||
| Photoshop Help Tips, questions, and solutions for Adobe Photoshop users One tip or question per thread, please |
| | Thread Tools |
|
#1
| |||
| |||
| Time stamp with PS CS4? 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 |
|
#2
| ||||
| ||||
| 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. |
|
#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 |
|
#4
| ||||
| ||||
| 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/ |
|
#5
| ||||
| ||||
| 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. |
|
#6
| |||
| |||
| Re: Time stamp with PS CS4? Thank you both. Git. |
|
#7
| |||
| |||
| 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! |
|
#8
| ||||
| ||||
| Re: Time stamp with PS CS4? Quote:
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 |
|
#9
| |||
| |||
| Re: Time stamp with PS CS4? Hi, cool stuff 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 |
|
#10
| ||||
| ||||
| Re: Time stamp with PS CS4? Quote:
Code: var foregroundC = new SolidColor(); foregroundC.rgb.red = 0; foregroundC.rgb.green = 0; foregroundC.rgb.blue = 0; foregroundColor = foregroundC; |
|
#11
| |||
| |||
| 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 |
|
#12
| ||||
| ||||
| 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 );
|
|
#13
| |||
| |||
| 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!!! |
|
#14
| ||||
| ||||
| 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. |
|
#15
| ||||
| ||||
| 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. |
|
#16
| |||
| |||
| 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 |
|
#17
| |||
| |||
| Re: Time stamp with PS CS4? Quote:
Last edited by brolis13; 05-06-2011 at 05:11 AM. |
|
#18
| ||||
| ||||
| Re: Time stamp with PS CS4? Create a new action, run the script, stop the action. |
|
#19
| |||
| |||
| 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; Code: textItemRef.color= foregroundC |
|
#20
| ||||
| ||||
| Re: Time stamp with PS CS4? Quote:
|
| Thread Tools | |
| |
| | ||||
| 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 |