Copy Path Custom Shortcut

Hi, I am trying to create my own custom action shortcut to copy the path of a selected event. I would love to be able to pres ctrl+alt+c to do this. I have done extensive googling haha but can’t seem to figure out where to start! I have looked through the FMOD API, FMOD keyboard shortcut reference, and other websites.

If anyone could help me out or point me in the right direction that would be amazing!

It seems to be possible to retrieve the path by a script, using Event.getPath(), however I’m not sure it is possible to have it stored in the clipboard!
To be continued…

Thanks, this is a good start! haha

I am not exactly sure how custom shortcuts would work… How would FMOD know to copy the path of the selected event when ctrl+alt+c is pressed. Does the script need to always be running in the background or does FMOD do this itself or does it just know? I couldn’t find any examples online of custom commands/shortcuts in play.

Here’s some examples in the documentation: FMOD - Scripting (custom menus)
FMOD Studio will detect the script files in these directories.

By indicating keySequence: "Ctrl+Alt+C" in the script. Check the exemples built in.
Loaded scripts are always active. You can decide when they should be active by setting isEnabled: function () with the conditions you want (it should return true to be active).

Thanks, guys! I’ll keep you updated on how I go.

1 Like