Catégorie : Master / Pratique
Generation Loss
Custom panel
A custom print command button made with ExtendScript Toolkit & Adobe Configurator 3.
#target photoshop var myDoc = app.activeDocument; var SheetH = 29.7; // Hauteur de papier (cm) var SheetW = 21.0; // Largeur de papier (cm) // ======= DEFINIR IMAGE INITIAL DANS HISTORIQUE ======= var stateRef = app.activeDocument.activeHistoryState; // ======= MODIFICATION IMAGE - EXEMPLE ============= // Create a new art layer at the beginning of the current document var pollution = app.activeDocument.artLayers.add(); pollution.name = "PM10"; pollution.blendMode = BlendMode.DARKEN; // Select all so we can apply a fill to the selection app.activeDocument.selection.selectAll(); // Create a color to be used with the fill command var colorPM10 = new SolidColor(); colorPM10.rgb.red = 255; colorPM10.rgb.green = 0; colorPM10.rgb.blue = 0; // Apply fill to the current selection app.activeDocument.selection.fill(colorPM10); // === LANCER IMPRESSION DOC MODIFIE ===== myDoc.DocPositionStyle = DocPositionStyle.PRINTCENTERED; app.bringToFront(); myDoc.printSettings.flip = false; myDoc.printSettings.setPagePosition(DocPositionStyle.SIZETOFIT); myDoc.printSettings.negative = false; myDoc.printOneCopy(); // === RETOURNER à L'IMAGE INITIALE ===== myDoc.activeHistoryState = stateRef;
Particules fines #2
Particules fines #1

Relevé du taux de particules fines PM10 (µg/m3) / Semaine du 15 au 21 Avril 2013 / à Genève, Paris, Pékin & Mexico.