I'd like to be able to select command items from a specified folder in a package.
For example some of my templates do the following:
- Run a Soundflow command which provides an initial value
- Run menu automation in another application, which launches a script which is run in the other application, using the initial value
- Run another Soundflow command.
Currently I do this using command IDs and paste the value into a string property in the template, but it's very cumbersome.
I'm hoping to be able to maker the process quicker by being able to choose commands from a dropdown list in the property. Ideally it wouldnt be the whole list of all commands in Soundflow, but I would specify the package and even a folder within the package first, then the dropdown would contain the list of commands relevant. These commands are themselves built in templates and each have their own command id.
- SSoundFlow Bot @soundflowbot
This issue is now tracked internally by SoundFlow as SF-1170
- In reply toAndrew_Sherman⬆:Christian Scheuer @chrscheuer2024-04-01 14:29:07.246Z
Hi Andrew,
You can use the "Callback Function" type for this instead. Instead of allowing just a single command to be dropped, it allows you to add any number of commands for a property.
You call it as a function from within the template.
- AAndrew Sherman @Andrew_Sherman
Wow, this looks promising Christian. I tried to add a function to my command, and I've added the Callback Function property to the template, but when I add a command to the property in the preset, it does not seem to trigger the command. Could you let me know how to use the Callback Function?
Christian Scheuer @chrscheuer2024-04-02 14:21:02.096Z
Example, where the property is called
onButtonDown
:const { onButtonDown } = event.props; if (onButtonDown) { onButtonDown(); }
- AAndrew Sherman @Andrew_Sherman
Wow, my mind is blown. This is going to be very powerful. With great power comes great responsibility
Christian Scheuer @chrscheuer2024-04-02 15:02:54.502Z
Yay! :)
- OOwen Granich-Young @Owen_Granich_Young
Loved this. I was coming here to request this and this post was suggested. Did not know this existed. Have to fix up function Buttons for dummies now :P