Invalid flag error

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;

}

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.

1 Like

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