Citation Envoyé par Zipp Voir le message
Alors la y a tout qui m....e !

Je poste un message et rien, donc je recommence et je me retrouver avec une série !

Si je chope Mr Bill Gates, va avoir à faire à moi !

Essaies celui la ?:blink:

Code:
var savedUnits=app.preferences.rulerUnits; 
var thisDoc=app.activeDocument; 
app.preferences.rulerUnits=Units.PIXELS; 

//  EXIF info 

var exif_info=""; 

var e = 6; //Modele
try { 
exif_info = "    " + exif_info + " " + thisDoc.info.exif[e][1]; //exif_info + thisDoc.info.exif[e][0] + " = " + thisDoc.info.exif[e][1] + "\r";
} 
catch (e) {} 

var e = 15; //Vitesse
try { 
exif_info = "    " + exif_info + " " + thisDoc.info.exif[e][1]; //exif_info + thisDoc.info.exif[e][0] + " = " + thisDoc.info.exif[e][1] + "\r";
} 
catch (e) {} 

var e = 16; //Ouverture
try { 
exif_info = "    " + exif_info + " " + thisDoc.info.exif[e][1]; //exif_info + thisDoc.info.exif[e][0] + " = " + thisDoc.info.exif[e][1] + "\r";
} 
catch (e) {} 

var e = 18; //Iso
try { 
exif_info = "    " + exif_info + " " + thisDoc.info.exif[e][1]; //exif_info + thisDoc.info.exif[e][0] + " = " + thisDoc.info.exif[e][1] + "\r";
} 
catch (e) {} 

var e = 26; //Distance focale
try { 
exif_info = "    " + exif_info + " " + thisDoc.info.exif[e][1]; //exif_info + thisDoc.info.exif[e][0] + " = " + thisDoc.info.exif[e][1] + "\r";
} 
catch (e) {} 

var e = 20; //Date
try { 
exif_info = "    " + exif_info + " " + thisDoc.info.exif[e][1]; //exif_info + thisDoc.info.exif[e][0] + " = " + thisDoc.info.exif[e][1] + "\r";
} 
catch (e) {} 




// alert(thisDoc.info.exif); 
text_layer=thisDoc.artLayers.add(); 
text_layer.kind = LayerKind.TEXT; 
textColor = new SolidColor; 
textColor.rgb.red = 0; 
textColor.rgb.green = 0; 
textColor.rgb.blue = 0; 
text_layer.textItem.color = textColor; 
text_layer.textItem.kind=TextType.PARAGRAPHTEXT; 
text_layer.textItem.position = Array(thisDoc.width * 0.05, thisDoc.height * 0.05);
text_layer.textItem.size = 18; //a la place de 4
text_layer.textItem.font = "ArialMT"; 
text_layer.textItem.width = thisDoc.width * 0.8 
text_layer.textItem.height = thisDoc.height * 0.8 
text_layer.textItem.contents=exif_info; 

// restore preferences 
app.preferences.rulerUnits=savedUnits;