# Detect/list instances on stage, create menu

**URL:** https://forum.kirupa.com/t/detect-list-instances-on-stage-create-menu/117430
**Category:** Uncategorized
**Created:** [July 27, 2004, 12:38pm UTC](https://forum.kirupa.com/t/detect-list-instances-on-stage-create-menu/117430 "2004-07-27T12:38:08Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![peshay](https://avatars.discourse-cdn.com/v4/letter/p/e0b2c6/32.png) [@peshay](https://forum.kirupa.com/u/peshay)
#### Post date: [July 27, 2004, 12:38pm UTC](https://forum.kirupa.com/t/detect-list-instances-on-stage-create-menu/117430/1 "2004-07-27T12:38:08Z")

</div>

Hi there, for a project i need to have a script checking which instances are on the stage and then make a list of this (or populate a menu in my case). So i have multiple instances (called module1, module2 etc) and when exporting i need a menu to be generated with buttons that have the same name/text as the instances; module1 module2 etc.

Could you do something like: for every instance of moduleclass create menuitem populate textbox with samename. ?  
Or do i need something else?.. helpp im freakin out ![](http://www.were-here.com/forum/smilies/rolling_eyes.gif)
