Copy link to clipboard
Copied
I'm trying to create a vector layer in PS CS6 that is used as a cropping guide for portraits. When I try to apply a transform to this layer, the transform box comes up but I can't change anything. I've done a search for this, and seen some examples from Mike and Paul, but they all will not allow me to change the transform.
Copy link to clipboard
Copied
If you are calling the transform from within an UI it will not allow you to change anything. It must be called from inline code.
Copy link to clipboard
Copied
No, Paul, the UI was closed, and it was called after creating the vector layer.
Copy link to clipboard
Copied
.. it was called after creating the vector layer.
Is the vector mask active/selected? If so it transforming the path instead of the layer.
Copy link to clipboard
Copied
I put an esc command to deselect the path and hopefully do the layer.
Copy link to clipboard
Copied
You may want to make sure what the Photoshop target is when you do the transform and also make sure there is no active selection. Like perhaps set the which layer is the active active layer and target the RGB channel. Free Transform may have some options disabled depending on layer type. For example if the current targeted layer is a text layer distort and perspective transforms can not be done. You would need to convert the text layer to a shape layer first to do that type of transform. You may want to also have a try catch to allow cancel for if no change is made ENTER as well as ESC cancels the transform.
activeDocument.selection.deselect();
try{
InteractiveTransform()
}catch(e){alert("Image Transform Canceled");} // or have no message
function InteractiveTransform() {
// Menu Edit>Free transform
var desc1 = new ActionDescriptor();
var ref1 = new ActionReference();
ref1.putEnumerated(cTID('Mn '), cTID('MnIt'), cTID('FrTr'));
desc1.putReference(cTID('null'), ref1);
executeAction(cTID('slct'), desc1, DialogModes.NO);
};
Find more inspiration, events, and resources on the new Adobe Community
Explore Now