# Obtaining max instances of an event

**URL:** <https://qa.fmod.com/t/obtaining-max-instances-of-an-event/13645>\
**Category:** FMOD Studio\
**Created:** [January 16, 2018, 4:59pm UTC](https://qa.fmod.com/t/obtaining-max-instances-of-an-event/13645 "2018-01-16T16:59:11Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![blitworks](https://avatars.discourse-cdn.com/v4/letter/b/58f4c7/32.png) [@blitworks](https://qa.fmod.com/u/blitworks)\
**Post date:** [January 16, 2018, 4:59pm UTC](https://qa.fmod.com/t/obtaining-max-instances-of-an-event/13645/1 "2018-01-16T16:59:11Z")

</div>

Hi!

I am porting a codebase that uses the old Event Designer to the new FMOD Studio.  
The legacy code uses the function getPropertyByIndex with FMOD\_EVENTPROPERTY\_MAX\_PLAYBACKS to get back the maximum number of instances of an event.  
What is the equivalent functionality of the new API? I checked that the property “Max Instances” still exists in the Studio and seems that that value has been correctly imported from the old project, but I haven’t seen any way to access to it.

Thanks.

---

<div class="post-metadata">

**Author:** ![cameron-fmod](https://yyz2.discourse-cdn.com/flex036/user_avatar/qa.fmod.com/cameron-fmod/32/261_2.png) [@cameron-fmod](https://qa.fmod.com/u/cameron-fmod)\
**Post date:** [January 18, 2018, 12:53am UTC](https://qa.fmod.com/t/obtaining-max-instances-of-an-event/13645/2 "2018-01-18T00:53:22Z")

</div>

Unfortunately there is no direct way to access the max instances property of an event in FMOD Studio. You may have to use something like a user property if you need that information, although it will have to be manually entered in Studio:  
[https://fmod.com/resources/documentation-api?page=content/generated/FMOD\_Studio\_EventDescription\_GetUserProperty.html#/](https://fmod.com/resources/documentation-api?page=content/generated/FMOD_Studio_EventDescription_GetUserProperty.html#/)
