Can you have scripts that are 'per project'?

I’m currently using fmod scripting api but for user scripts to show up it seems they must go in %localappdata% on a per machine level. When using source control and multiple develolpers it would be much nicer to have a script that’s only really valid for 1 project to be included in the project folder somehow. Is this at all possible?

Many thanks

Yes, this is possible!

As detailed in the FMOD Studio User Manual, FMOD Studio actually looks for script files in three different locations.

  • The system scripts directory is the one you’ve already discovered. It’s used for user-specific scripts, i.e.: for when there are multiple people who have accounts on the same computer, and they each have their own personal scripts:
    • Windows: %localappdata%/FMOD Studio/Scripts
    • Mac: ~/Library/Preferences/FMOD Studio/Scripts
    • Linux: ~/.config/fmod-studio/Scripts
  • The built-in scripts directory is for scripts that are shared by all accounts using the same computer:
    • Windows: %fmod_install_directory%/Scripts
    • Mac: %fmod_bundle%/Scripts
    • Linux: %fmod_install_directory%/Scripts
  • The project scripts directory is for scripts that are associated with a specific FMOD Studio project, and are shared by everyone working on that project:
    • %project_root_directory%/Scripts

Whenever you load a project in FMOD Studio, FMOD Studio automatically loads scripts from all three of these locations, so you can freely use all three of them in combination if you want.

In any case, it sounds like you want the project scripts directory. Just open your FMOD Studio project folder (i.e.: the folder that contains the .fspro file) and create a subfolder named “Scripts”. Then, put any script files you want to share inside that “Scripts” folder. If you do this while your FMOD Studio project is open, you will need to select “Scripts > Reload” before you can use them in FMOD Studio, and you will need to save the project before you can submit them to your source control repository.

oh perfect! Just tried and worked great, I must of completely missed that when looking it up, sorry :smiley: