Chr1sG
May 28, 2021, 11:49am
2
If you know how to do it with the API, then you can do it with an action button using a script.
See here for how to execute any API command from an action button:
Nice! I can’t find executeSingleCommand anywhere in the API docs, but I assume the IntelliSense in the button editor will help and/or that it takes the entire payload that would normally go in to body?
The other stuff isn’t a huge deal for me, so no worries about that.
EDIT: Indeed it shows up in the IntelliSense, and it takes the body payload—except you omit the wrapping array and leave it with 1 command (as the method name suggests).
For other people’s reference, here’s an ex…