haha that was a nice aside guys, we got the gui to open/close when the plugin is loaded/unloaded! HOWEVER, the same problem is still occurring, if i unload the plugin and then load it again, when i click the "go!" button on my gui, Maya crashes!
I don't have any undo info:
CODE
// MAKE THIS COMMAND NOT UNDOABLE:
bool SyntheticLiDAR::isUndoable() const
{
return false;
}
here are some other relevant functions:
CODE
MStatus initializePlugin(MObject obj)
{
MStatus status;
MFnPlugin plugin(obj, "David Doria", "2008", "Any");
status = plugin.registerCommand("SyntheticLiDAR", SyntheticLiDAR::creator);
plugin.registerUI("SyntheticLiDARGUICreate","SyntheticLiDARGUIDelete");
return status;
}
MStatus uninitializePlugin(MObject obj)
{
MStatus status;
MFnPlugin plugin(obj);
plugin.deregisterCommand("SyntheticLiDAR");
return status;
}
class SyntheticLiDAR : public MPxCommand
{
public:
SyntheticLiDAR();
virtual ~SyntheticLiDAR();
static void* creator();
bool isUndoable() const;
MStatus doIt(const MArgList&);
MStatus undoIt();
};
// CONSTRUCTOR
SyntheticLiDAR::SyntheticLiDAR()
{
}
// DESTRUCTOR
SyntheticLiDAR::~SyntheticLiDAR()
{
}
// FOR CREATING AN INSTANCE OF THIS COMMAND:
void* SyntheticLiDAR::creator()
{
return new SyntheticLiDAR;
}
Any other clues?
Thanks,
Dave