def METHOD_NAME(self, evt):
    if not self.curveSequence:
        dlg = wx.MessageDialog(None, 'Please create an animation first.', 'NOTICE', wx.OK)
        dlg.ShowModal()
        dlg.Destroy()
    else:
        if self.editor.animMgr.curveAnimation == {}:
            self.editor.animMgr.curveAnimation[(self.nodePath[OG.OBJ_UID], self.curve[OG.OBJ_UID])] = \
                (self.nodePath[OG.OBJ_UID], self.curve[OG.OBJ_UID], self.time)
            self.editor.updateStatusReadout('Sucessfully saved to global animation list')
            return
        hasKey = False
        for key in self.editor.animMgr.curveAnimation:
            if key == (self.nodePath[OG.OBJ_UID], self.curve[OG.OBJ_UID]):
                dlg = wx.MessageDialog(None, 'Already have the animation for this object attach to this curve.', 'NOTICE', wx.OK)
                dlg.ShowModal()
                dlg.Destroy()
                hasKey = True
                return
            elif self.nodePath[OG.OBJ_UID] == key[0]:
                dlg = wx.MessageDialog(None, 'This object is already attached to a curve.', 'NOTICE', wx.OK)
                dlg.ShowModal()
                dlg.Destroy()
                hasKey = True
                return
        if not hasKey and self.editor.animMgr.curveAnimation != {}:
            self.editor.animMgr.curveAnimation[(self.nodePath[OG.OBJ_UID], self.curve[OG.OBJ_UID])] = \
                (self.nodePath[OG.OBJ_UID], self.curve[OG.OBJ_UID], self.time)
            self.editor.updateStatusReadout('Sucessfully saved to global animation list')