# FMOD Studio scripting "The following characters are not permitted: \<\>:/\\|?\*"

**URL:** https://qa.fmod.com/t/fmod-studio-scripting-the-following-characters-are-not-permitted/13675
**Category:** FMOD Studio
**Created:** [January 29, 2018, 5:21pm UTC](https://qa.fmod.com/t/fmod-studio-scripting-the-following-characters-are-not-permitted/13675 "2018-01-29T17:21:32Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![flyboyaces](https://avatars.discourse-cdn.com/v4/letter/f/ba9def/32.png) [@flyboyaces](https://qa.fmod.com/u/flyboyaces)
#### Post date: [January 29, 2018, 5:21pm UTC](https://qa.fmod.com/t/fmod-studio-scripting-the-following-characters-are-not-permitted/13675/1 "2018-01-29T17:21:32Z")

</div>

Hi everyone,  
I am currently creating a script for FMOD studio using FMOD Studio’s tool scripting API using Javascript. I have accomplished creating an event and adding it to the master bank manually and via script. With my event selected, I am also able to manually create a game parameter by pressing the “+” tab \> “Add Parameter” \> “New Parameter”. Under “Name:”, I typed “engine\_rotation\_speed\_rad\_sec[\*]”, pressed “OK”, and the parameter was created successfully with the name on the tab.  
My Problem is when I try to create a parameter via script. When I try to set the name to “engine\_rotation\_speed\_rad\_sec[\*]” or “engine\_rotation\_speed\_rad\_sec[\*]” I get a message saying “The following characters are not parmitted: \<\>:”/\|?\*", and the parameter name remains undefined. Even when I tried “myParameter = studio.project.workspace.addGameParameter(“User”);”, the same message appears when I try “myEvent.addGameParameter(myParameter)”.

What frustrates me is that I am able to name a property manually using the same characters prohibited in the script. Is there a workaround to naming the parameters using those characters via the script instead of having to manually name each of them each time?

---

<div class="post-metadata">

### Author: ![richard\_simms](https://yyz2.discourse-cdn.com/flex036/user_avatar/qa.fmod.com/richard_simms/32/261_2.png) [@richard\_simms](https://qa.fmod.com/u/richard_simms)
#### Post date: [January 30, 2018, 12:37am UTC](https://qa.fmod.com/t/fmod-studio-scripting-the-following-characters-are-not-permitted/13675/2 "2018-01-30T00:37:39Z")

</div>

Hi Zachary,

This is a known issue we are working on. The scripting output is the correct behaviour - you should not be able to add these characters to a parameter’s name.

In regards to creating game parameters via scripting, it’s a little more complicated than that.

You will need to first use “addGameParameter” on the event you wish to add it to. The code you pasted is trying to add a parameter to the project itself.

Once you have the event, you need to add the properties of the parameter with the following format:

```
eventVariable.addGameParameter({ 
    name: "Test", 
    type: studio.project.parameterType.User, 
    min: -1, 
    max: 20 
});

```

If you have further questions on scripting, please let us know.

Thanks,  
Richard
