# options

**URL:** https://forum.highend3d.com/t/options/5159
**Category:** Maya
**Tags:** mel
**Created:** [June 25, 2003, 11:04pm UTC](https://forum.highend3d.com/t/options/5159 "2003-06-25T23:04:55Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![thejakub](https://forum.highend3d.com/letter_avatar_proxy/v4/letter/t/3ab097/32.png) [@thejakub](https://forum.highend3d.com/u/thejakub)
#### Post date: [June 25, 2003, 11:04pm UTC](https://forum.highend3d.com/t/options/5159/1 "2003-06-25T23:04:55Z")

</div>

I am working on a translator for Maya and I wanted to write a seperate MEL script for the options. The problem I am having is that, Maya recognizes the script but I get an error so I never get to see my options. The error is as follows: "Error: Object's name is not unique: BoxLayout". I looked at other options scripts and I can't pin down the source of error.

Thanks,   
Jakub

---

<div class="post-metadata">

### Author: ![gmask](https://forum.highend3d.com/user_avatar/forum.highend3d.com/gmask/32/192_2.png) [@gmask](https://forum.highend3d.com/u/gmask)
#### Post date: [June 25, 2003, 11:13pm UTC](https://forum.highend3d.com/t/options/5159/2 "2003-06-25T23:13:06Z")

</div>

Can you show the section of your code where the window's title and the internal reference name of the window is declared?

---

<div class="post-metadata">

### Author: ![thejakub](https://forum.highend3d.com/letter_avatar_proxy/v4/letter/t/3ab097/32.png) [@thejakub](https://forum.highend3d.com/u/thejakub)
#### Post date: [June 26, 2003, 12:15am UTC](https://forum.highend3d.com/t/options/5159/3 "2003-06-26T00:15:47Z")

</div>

columnLayout -adj true optsExportObjects;  
 radioButtonGrp  
 -l "Lights"   
 -nrb 2   
 -cw3 175 75 75   
 -la2 "yes" "no"   
 optLights;  
 radioButtonGrp   
 -l "Materials"   
 -nrb 2   
 -cw3 175 75 75   
 -la 2 "yes" "no"   
 optMaterials;

---

<div class="post-metadata">

### Author: ![gmask](https://forum.highend3d.com/user_avatar/forum.highend3d.com/gmask/32/192_2.png) [@gmask](https://forum.highend3d.com/u/gmask)
#### Post date: [June 26, 2003, 12:55am UTC](https://forum.highend3d.com/t/options/5159/4 "2003-06-26T00:55:12Z")

</div>

Here's the sampel code from the docs for making a window

string $window = `window -title "Long Name" -iconName "Short Name" -widthHeight 200 55 NewWindow`;  
 columnLayout -adjustableColumn true;  
 button -label "Do Nothing";  
 button -label "Close" -command ("deleteUI -window " + $window);  
 setParent ..;

```
showWindow $window;
```

If you remove "NewWindow" you can have as many copies of this as you want open as maya will generate a new name for every winodw otherwise you can only launch one NewWindow at a time.

---

<div class="post-metadata">

### Author: ![thejakub](https://forum.highend3d.com/letter_avatar_proxy/v4/letter/t/3ab097/32.png) [@thejakub](https://forum.highend3d.com/u/thejakub)
#### Post date: [June 26, 2003, 1:35am UTC](https://forum.highend3d.com/t/options/5159/5 "2003-06-26T01:35:33Z")

</div>

Well, I'm not making a new window, this is merely for the options dialog box you get when you go to export something. I shouldn't have to bother with the window at all. I've even looked at the mel scripts done for other translators and there isn't anything about window in all of them.

---

<div class="post-metadata">

### Author: ![naughty](https://forum.highend3d.com/letter_avatar_proxy/v4/letter/n/35a633/32.png) [@naughty](https://forum.highend3d.com/u/naughty)
#### Post date: [June 26, 2003, 8:24am UTC](https://forum.highend3d.com/t/options/5159/6 "2003-06-26T08:24:56Z")

</div>

well if you haven't accidentally called two different controls "BoxLayout" the only thing I can think of is that you've forgotten the -e or -q flag on a line refering to "BoxLayout", so your script thinks you want to create "BoxLayout" again when really you meant to query or edit "BoxLayout"...? This happened to me once before at least...

:nathaN
