So I’ve been trying to learn as much as I can about batchPlay and how to trigger different things. I’ve noticed that there are somethings that just don’t show up in Alchemist or ScriptListener, but you can still trigger/use. A couple of examples found on these forums:
Toggle animation window:
const batchPlay = require("photoshop").action.batchPlay;
async function toggleTimeline() {
await batchPlay(
[{
_obj: "select",
_target: [{
_ref: "$Mn",
_enum: "$MnIt",
_value: "toggleAnimationPalette",
}]
}], {});
}
View fit on screen:
{
_obj: ‘select’,
_target: [
{
_ref: '$Mn ',
_enum: ‘$MnIt’,
_value: ‘fitOnScreen’,
},
]
}
My question is how do I find those on my own? I would hate to have to post a question here every time I have something not showing in the my stack.