# Is there a way to access FMOD\_STUDIO\_PARAMETER\_ID within a Studio Script?

**URL:** <https://qa.fmod.com/t/is-there-a-way-to-access-fmod-studio-parameter-id-within-a-studio-script/20577>\
**Category:** FMOD Studio\
**Tags:** javascript\
**Created:** [August 22, 2023, 6:19am UTC](https://qa.fmod.com/t/is-there-a-way-to-access-fmod-studio-parameter-id-within-a-studio-script/20577 "2023-08-22T06:19:40Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![taleworlds](https://avatars.discourse-cdn.com/v4/letter/t/3e96dc/32.png) [@taleworlds](https://qa.fmod.com/u/taleworlds)\
**Post date:** [August 22, 2023, 6:19am UTC](https://qa.fmod.com/t/is-there-a-way-to-access-fmod-studio-parameter-id-within-a-studio-script/20577/1 "2023-08-22T06:19:40Z")

</div>

Hey there,  
I’m working on a small Fmod Studio tool where I need to access FMOD\_STUDIO\_PARAMETER\_ID, yet I couldn’t find a way to go even into parameter descriptions. Is there a way to access that info within a Studio Script?

---

<div class="post-metadata">

**Author:** ![Connor\_FMOD](https://yyz2.discourse-cdn.com/flex036/user_avatar/qa.fmod.com/connor_fmod/32/3685_2.png) [@Connor\_FMOD](https://qa.fmod.com/u/Connor_FMOD)\
**Post date:** [August 23, 2023, 5:42am UTC](https://qa.fmod.com/t/is-there-a-way-to-access-fmod-studio-parameter-id-within-a-studio-script/20577/2 "2023-08-23T05:42:29Z")

</div>

Hi,

With a parameter selected in the `Preset Browser`

 ![image](https://canada1.discourse-cdn.com/flex036/uploads/fmod/original/2X/3/3d07dc456750a9342ff2806a0ff596a9a9dc3c4a.png)  
using the console you can access its `ID` using:

```auto
studio.window.browserCurrent().id
{e9b7aafa-2df0-4193-b32e-a74e5753cfa0}

```

Is this what you were looking for?

If not, would it be possible to elaborate on what the script is aiming to do?

---

<div class="post-metadata">

**Author:** ![taleworlds](https://avatars.discourse-cdn.com/v4/letter/t/3e96dc/32.png) [@taleworlds](https://qa.fmod.com/u/taleworlds)\
**Post date:** [August 23, 2023, 6:14am UTC](https://qa.fmod.com/t/is-there-a-way-to-access-fmod-studio-parameter-id-within-a-studio-script/20577/3 "2023-08-23T06:14:24Z")

</div>

Hey Connor, that appears not the ID I’m looking for 🙂

I’m looking for [FMOD\_STUDIO\_PARAMETER\_ID](https://www.fmod.com/docs/2.02/api/studio-api-common.html#fmod_studio_parameter_id)-type value, where I pass to [SetParameterByID](https://www.fmod.com/docs/2.02/api/studio-api-eventinstance.html#studio_eventinstance_setparameterbyid) function.

---

<div class="post-metadata">

**Author:** ![Connor\_FMOD](https://yyz2.discourse-cdn.com/flex036/user_avatar/qa.fmod.com/connor_fmod/32/3685_2.png) [@Connor\_FMOD](https://qa.fmod.com/u/Connor_FMOD)\
**Post date:** [August 24, 2023, 5:30am UTC](https://qa.fmod.com/t/is-there-a-way-to-access-fmod-studio-parameter-id-within-a-studio-script/20577/4 "2023-08-24T05:30:00Z")

</div>

Hi,

I see, would it be possible to see the full script or could you elaborate on what you are trying to do with the script?

Thanks

---

<div class="post-metadata">

**Author:** ![taleworlds](https://avatars.discourse-cdn.com/v4/letter/t/3e96dc/32.png) [@taleworlds](https://qa.fmod.com/u/taleworlds)\
**Post date:** [August 29, 2023, 5:42am UTC](https://qa.fmod.com/t/is-there-a-way-to-access-fmod-studio-parameter-id-within-a-studio-script/20577/5 "2023-08-29T05:42:13Z")

</div>

Hey Connor, we’re trying to parse all event IDs to be passed to our dedicated server which doesn’t do FMOD at all yet still needs to know these IDs beforehand. Luckily we have access to the Source Code and found out how you generate those IDs. We’ll be mimicking that and all will be good.

Still, I think you need to come up with a way to access this ID for customers that doesn’t have Source code access.

Cheers,

---

<div class="post-metadata">

**Author:** ![Connor\_FMOD](https://yyz2.discourse-cdn.com/flex036/user_avatar/qa.fmod.com/connor_fmod/32/3685_2.png) [@Connor\_FMOD](https://qa.fmod.com/u/Connor_FMOD)\
**Post date:** [August 29, 2023, 11:05pm UTC](https://qa.fmod.com/t/is-there-a-way-to-access-fmod-studio-parameter-id-within-a-studio-script/20577/6 "2023-08-29T23:05:16Z")

</div>

Hi,

Good to hear you found a solution. I will pass your suggestion on to our development team to look into further.

---

<div class="post-metadata">

**Author:** ![kleptine](https://avatars.discourse-cdn.com/v4/letter/k/ccd318/32.png) [@kleptine](https://qa.fmod.com/u/kleptine)\
**Post date:** [June 11, 2024, 9:32pm UTC](https://qa.fmod.com/t/is-there-a-way-to-access-fmod-studio-parameter-id-within-a-studio-script/20577/7 "2024-06-11T21:32:37Z")

</div>

Would it be possible to share how PARAMETER\_IDs are generated? I am attempting something similar: to bake the PARAMETER\_IDs to a C# file whenever banks are built in FMOD.

I haven’t been able to find a way to access the PARAMETER\_ID in FMOD’s javascript scripting engine. Is there some way I’m not aware of?

---

<div class="post-metadata">

**Author:** ![mathew](https://yyz2.discourse-cdn.com/flex036/user_avatar/qa.fmod.com/mathew/32/431_2.png) [@mathew](https://qa.fmod.com/u/mathew)\
**Post date:** [June 13, 2024, 4:12am UTC](https://qa.fmod.com/t/is-there-a-way-to-access-fmod-studio-parameter-id-within-a-studio-script/20577/8 "2024-06-13T04:12:21Z")

</div>

Ultimately, we want to provide access to `PARAMETER_ID` within FMOD Studio, however currently that’s not possible. Considering it’s not possible, and having an immediate solution would be beneficial, I will share how we generate them. Be advised that we reserve the right to change the implementation at a later date.

The method is simple, we use a hash of the GUID using the `hashlittle2` algorithm, which is a public domain algorithm you can get [here](https://burtleburtle.net/bob/c/lookup3.c).

Here is the usage from our source:

```
FMOD_GUID temp = guid;
FMOD_STUDIO_PARAMETER_ID id = { 0, 0 };

hashlittle2(&temp.Data1, sizeof(temp.Data1), &id.data1, &id.data2);
hashlittle2(&temp.Data2, sizeof(temp.Data2), &id.data1, &id.data2);
hashlittle2(&temp.Data3, sizeof(temp.Data3), &id.data1, &id.data2);
hashlittle2(temp.Data4, sizeof(temp.Data4), &id.data1, &id.data2);

```
