# Invalid flag error

**URL:** https://forum.highend3d.com/t/invalid-flag-error/161284
**Category:** Maya
**Tags:** mel, modeling
**Created:** [August 31, 2019, 5:35pm UTC](https://forum.highend3d.com/t/invalid-flag-error/161284 "2019-08-31T17:35:58Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![jayantbhatt007](https://forum.highend3d.com/letter_avatar_proxy/v4/letter/j/94ad74/32.png) [@jayantbhatt007](https://forum.highend3d.com/u/jayantbhatt007)
#### Post date: [August 31, 2019, 5:35pm UTC](https://forum.highend3d.com/t/invalid-flag-error/161284/1 "2019-08-31T17:35:59Z")

</div>

script giving me an error invalid -dcc flag. Anyone?

{  
// create a window  
window -title “Nut” -menuBar true -w 220 -h 200 “”;  
// define the layout of controls added  
// to the window.  
columnLayout;  
// create a collapsible frame layout  
frameLayout -collapsable true -label “Nuts”;

// add the other controls  
flowLayout -columnSpacing 1 -w 220 -h 30;

// create six symbol buttons with related mel command

symbolButton -image “commandButton.png” -command “SE()” -dcc “SOFF()” ;

setParent ..;  
// show the window we last created  
showWindow;  
}

global proc SE(){

dR\_DoCmd(“slideEdge”);  
inViewMessage -smg “Slide Edge is On” -pos topCenter -bkc 0x00000000 -fade;

}

global proc SOFF(){

dR\_DoCmd(“slideOff”);  
inViewMessage -smg “Slide Transform is Off” -pos topCenter -bkc 0x00000000 -fade;

}

---

<div class="post-metadata">

### Author: ![bjeldark](https://forum.highend3d.com/letter_avatar_proxy/v4/letter/b/ee59a6/32.png) [@bjeldark](https://forum.highend3d.com/u/bjeldark)
#### Post date: [September 3, 2019, 3:31pm UTC](https://forum.highend3d.com/t/invalid-flag-error/161284/2 "2019-09-03T15:31:36Z")

</div>

Well, there’s no such flag (I presume you’re trying to mimmick doubleClickCommand with that) in symbolButton command (or in any button command for that matter), so hence the error.

---

<div class="post-metadata">

### Author: ![system](https://forum.highend3d.com/user_avatar/forum.highend3d.com/system/32/59311_2.png) [@system](https://forum.highend3d.com/u/system)
#### Post date: [November 27, 2019, 5:48am UTC](https://forum.highend3d.com/t/invalid-flag-error/161284/3 "2019-11-27T05:48:15Z")

</div>

This topic was automatically closed after 87 days. New replies are no longer allowed.
