Photoshop-Cafe.de :: Dein Photoshop-Forum

Photoshop-Cafe.de :: Dein Photoshop-Forum (https://www.photoshop-cafe.de/forum/index.php)
-   Hilfestellung, Tipps und Tricks (https://www.photoshop-cafe.de/forum/forumdisplay.php?f=30)
-   -   2 farbige Schrift als Stempel??!! (https://www.photoshop-cafe.de/forum/showthread.php?t=18325)

Quick Flicks 06.08.13 22:19

Eine andere Möglichkeit wäre nur eine Copyright Beschriftung.
Dieses Skript setz die beschriftung in weiß immer in die untere linke Ecke egal ob das Bild in Horizontal oder Vertical ist.
Es ist in Ihrem Namen aber Sie können natürlich das ändern auch die Größe und Farbe.

if ( documents.length > 0 )
{
/*
This script will add copyright information and filename on a text layer
*/
// set units to pixels
var originalRulerUnits = preferences.rulerUnits;
preferences.rulerUnits = Units.PERCENT;

try
{
// add art layer
var docRef = activeDocument;
var artLayerRef = docRef.artLayers.add();
artLayerRef.kind = LayerKind.TEXT;

// Personalize your values in the section below

// Copyright info
var myCopyrightText = "© Fotografie by Martin H.";
// select opacity
artLayerRef.opacity = 100;
// select the text colour
var newColour = new SolidColor();
if (docRef.mode == DocumentMode.CMYK)
{
newColour.cmyk.cyan = 255;
newColour.cmyk.magenta = 255;
newColour.cmyk.yellow = 255;
newColour.cmyk.black = 0;
}
if (docRef.mode = DocumentMode.RGB)
{
newColour.rgb.red = 255;
newColour.rgb.green = 255;
newColour.rgb.blue = 255;
}
artLayerRef.textItem.color = newColour;
// select the font name
artLayerRef.textItem.font = "Arial";
// select the font size
artLayerRef.textItem.size = 24;
// select the text position - this can be an absolute value too, eg. (10,20)
artLayerRef.textItem.position = new Array (2,98);

// Personalize your values in the section above

// add text item on the art layer
var textItemRef = artLayerRef.textItem;
// text contents is copyright info
textItemRef.contents = myCopyrightText;

// dereference pointers
docRef = null;
artLayerRef = null;
textItemRef = null;
myCopyrightText = null;
newColour = null;
}
catch( e )
{
// received and error ... throw it back to the user
preferences.rulerUnits = originalRulerUnits;
throw e;
}
preferences.rulerUnits = originalRulerUnits;
}
else
{
alert( "Open a document first." );
}


Alle Zeitangaben in WEZ +2. Es ist jetzt 08:55 Uhr.

Powered by vBulletin® Version 3.8.7 (Deutsch)
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
©2005-2024 photoshop-cafe.de

Seite wurde generiert in 0,01438 Sekunden mit 8 Queries