View Full Version : GUI -command issue...

05 May 2006, 09:42 PM
This is a strange one! I have loaded up my own plug-in using a .mel file with an accompanying GUI. However, the plug-in loads ok but then the button, with the correct '-command "[Execute command"' does nothing! It's just not running the plug in. Why?

05 May 2006, 09:09 AM
maybe it would be helpful if you'd write your command line so we'd see what you pass to your plugin.

05 May 2006, 08:16 PM
if(`window -exists ICAExportWindow`)
{ deleteUI ICAExportWindow; }
window ICAExportWindow;
columnLayout -columnAttach "both" 12 -rowSpacing 8 -columnWidth 150;
button -label "Export Scene!" -command "ICAExport";
showWindow ICAExportWindow;
loadPlugin "ICAExport.mll";

'ICAExport' <- when executed in the script text field, works. Through the button, it does not.

05 May 2006, 08:27 PM
ah ok sorry. thought it would be more complex.
i really don't know why it doesn't work. the thing i'd try (a bit dirty workaround):

-command "eval(\"ICAExport\")"


write an extra mel-procedure which does nothing else then executing your command and is started by the button.

just some ideas - maybe it helps.
good luck!

CGTalk Moderation
05 May 2006, 08:27 PM
This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.