Copy link to clipboard
Copied
I searched on Adobe and www.ps-scripts.com/ forums and can't realize why there is no topic where someone would for so many years at least ask this question:
How to script "Show/Hide Transform Controls?"
Well I do need it, but Action Manager doesn't detect it, and for some weird reason there is no this option in any menu of CS5.1 and probably CS6 I use in work. Can someone tell me how can I script it?
Copy link to clipboard
Copied
I am not sure if you can show/hide it classic way but you can read this option.
If I use Get application info - script Get Application Info Code | Tonton Pixel
Then I see current tool options
"currentToolOptions":
[
"<object>",
[
"currentToolOptions",
{
"'AtSl'":
[
"<boolean>",
false
],
"'ASGr'":
[
"<boolean>",
false
],
"'Abbx'": // <-- here
[
"<boolean>",
true
]
}
]
],
Copy link to clipboard
Copied
Thank You, I'll look into it!
Copy link to clipboard
Copied
WOW! great answer and great question!
Copy link to clipboard
Copied
Copy link to clipboard
Copied
get! perfect! Forgive me for my poor English. I has a problem long time that is photoshop script has systematic document to achieve function? for example, move one layer to other group(target), the target can't be putIdentifer, only putIndex should work? why and how to learn essential reason? Usually I see the ScriptingListenerJS log, guess and try modify code to achieve my needed.but I think it's not correct road, what should I do?
Copy link to clipboard
Copied
In some cases you can't use identifiers, but indexes. Just try to see what exactly works.
Copy link to clipboard
Copied
The transform controls you show are for the move tool used interactively. In a script you can use Photoshop tools non interactively. You can move, transform, align, invert etc layer and no dialogs will show like the transform bounding box with control points.