set parameter value from command line


Trying for days now to set a parameter in fmod studio on osx from the command line
Is this possible?
If so… how??

I want to use it for an escaperoom game ( so real life ) setup with external inputs to trigger events/parameters. Or is there a better way to do thid kind of things?


Hi Rogier,

You can only set parameter values through the application running FMOD. You would need to create an external script that sends commands to the application running FMOD when it receives these inputs from the room.

It is hard to recommend a better way as we’re not sure what your current setup is like.

It would likely be easier to just have the external inputs talk directly to the application running FMOD.


1 Like

Is it still impossible with Fmod Studio version 2.02 to set a parameter value from the console ?
I can set the master bus of the mixer like this (Thanks to Alessandro Famà):

var masterBus = studio.project.workspace.mixer.masterBus;
masterBus.volume = -2;

And I can send “masterBus.volume = -2;” from TCP/IP, after creating “var masterBus” in Fmod Studio console, to change the vlaue.

Is there a way to do it for a parameter?

Thanks for tour answers!

ah you mean by using the scripting api?
You can do it like this as far as I know (example):

var event = studio.project.lookup("event:/Music/Level 03"); // get your ManagedObject:Event
var parameters = event.getParameterPresets(); // get an array of ManagedObject:GameParameter's
event.setCursorPosition(parameters[0], 1.0); // set the value of the GameParameter, could also be a Timeline

Thanks for your help, it works :slightly_smiling_face: