# How can I get sheet content by javascript?

**URL:** <https://qa.fmod.com/t/how-can-i-get-sheet-content-by-javascript/21176>\
**Category:** FMOD Studio\
**Created:** [January 31, 2024, 7:35am UTC](https://qa.fmod.com/t/how-can-i-get-sheet-content-by-javascript/21176 "2024-01-31T07:35:44Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![MisakaCirno](https://avatars.discourse-cdn.com/v4/letter/m/e480ec/32.png) [@MisakaCirno](https://qa.fmod.com/u/MisakaCirno)\
**Post date:** [February 27, 2024, 10:37am UTC](https://qa.fmod.com/t/how-can-i-get-sheet-content-by-javascript/21176/4 "2024-02-27T10:37:32Z")

</div>

I seem to be able to get all the ActionSheets by way of `studio.project.model.ActionSheet.findInstances()` and get which Event the ActionSheet exists in by way of `actionSheet.event`.  
Is there a way to get if it has an ActionSheet by Event?

* * *

How do you get each Instrument in an ActionSheet? I guess maybe `actionSheet.modules.sounds`.

* * *

How do I get what specific action a Command Instrument performs?  
I selected `Set Parameter` for `Command Type` in Command Instrument, which seems to correspond to `actionSheet.modules.sounds[0].commandType`.  
The `Value` parameter seems to correspond to `actionSheet.modules.sounds[0].targetValue`.  
The `Target` parameter seems to correspond to `actionSheet.modules.sounds[0].commandTarget`, which is an instance of `ManagedObject:GameParameter`.

I don’t know if my speculation is correct.

* * *

In `actionSheet.modules.sounds[0].commandTarget`, an instance of `ManagedObject:GameParameter` is available, but it does not have a member with `name`.  
The `ManagedObject:ParameterPreset` is the instance with the `name` member, which is consistent with what is shown in FMOD Studio’s Preset Browser.  
What is the relationship between `ManagedObject:GameParameter` and `ManagedObject:ParameterPreset`?

---

_[View the full topic](https://qa.fmod.com/t/how-can-i-get-sheet-content-by-javascript/21176)._
