text location in the photoshop script
i am new to photoshop script ... i like to understand how to put the location of text in the script...
i have this in the script
// off set the text to be in the middle
myTextRef.position = new Array( docRef.width / 2, docRef.height / 2 );
this puts the text in the middle of a photo (any size) in photoshop...
i changed this to
myTextRef.position = new Array( docRef.width / 10, docRef.height / 10 );
it shifts the text a bit to the upper left corner ...
i changed this to
myTextRef.position = new Array( docRef.width / 30, docRef.height / 30 );
it shifts the text to the upper left corner ...
i like to put the text in the lower left corner of a photo (any size)...
i tried change to
myTextRef.position = new Array( docRef.width / -30, docRef.height / -30 );
myTextRef.position = new Array( -docRef.width / 30, -docRef.height / 30 );
but it did not work ... it shift the text outside a photo in upper left corner...
any advise how i should change in order to put the text in lower left corner...
thanks and cheers,
