I find that Rotation and perspective transforming is not supported with these vector smart objects. SVG file as vector smart object to a point. If you use Illustrator I would expect that you would create your Watermark using all vector graphics in Illustrator and use that File as placed vector smart object in Photoshop. I do not use Illustrator one complex Adobe application is all I want. They are not layered and contain no objects. You would need to change the script if you want the layer to have a linked master watermark file which make not sense if you will be saving files for the web.
The way the script is coded your full size file is embedded in the layers object.
When you update the object Photoshop will render a new set of Pixels for the updated object. The only want to change these is to open the layers object and modifying the object. These pixels can not be changed by Photoshop tools. The transform is transforming the Pixels rendered for the layer. Any time you change a smart object layers transform. To scale and position the layer composite in you document. Also every Smart Object layer has an associated transform. There composite can be adjusted via smart filters. The rendered layer pixels can not be changed with Photoshop tools like paint brush, erases etc. The layes's object will either contain a copy of your file or a link to your file. By default Place will create a smart object layer. The way place works is it uses your file full resolution to render Pixels for you new Photoshop layer. PlaceWatermark(logoFile, LogoSize, LogoMargin) // Place Watermark into the bottom right of documentįunction placeWatermark(Image,Size,Margin) // inform user of errorĪpp.lerUnits = strtRulerUnits // Restore user ruler unitsĪpp.preferences.typeUnits = strtTypeUnits // Restore user type unitsĭesc21.putPath( charIDToTypeID('null'), new File(placeFile) ) ĭesc21.putEnumerated( charIDToTypeID('FTcs'), charIDToTypeID('QCSt'), charIDToTypeID('Qcsa') ) ĭesc22.putUnitDouble( charIDToTypeID('Hrzn'), charIDToTypeID('#Pxl'), 0.000000 ) ĭesc22.putUnitDouble( charIDToTypeID('Vrtc'), charIDToTypeID('#Pxl'), 0.000000 ) ĭesc21.putObject( charIDToTypeID('Ofst'), charIDToTypeID('Ofst'), desc22 ) ĮxecuteAction( charIDToTypeID('Plc '), desc21, DialogModes.NO ) Var LogoMargin = 1 // percent of Document height the Watermark should have as a margin Var LogoSize = 10 // percent of document height to resize Watermark to Var logoFile = "~/Desktop/JJMack.png" // Watermark file should be large for resize down works better than up You would need to change the last transform. It should be easy to modify the script I have posted it places the watermark on the bottom right not the left.