On 27/04/2014 at 18:17, xxxxxxxx wrote:
I havent figured out an answer to this yet, buy Dan and I had some twitter conversations about it. For continuity I'm pasting that conversation here in hopes that it might help someone else thing of a answer.
Dan Fitzgerald @D_Fitz_G
@RagingClaw haha no worries, glad that worked out!
Charles Rowland @RagingClaw
@D_Fitz_G weird, NodeData.Free seems to be called after any interaction, not just deletions.
Dan Fitzgerald @D_Fitz_G
@RagingClaw that's not that useful then! Just replied to your last post on plugincafe
Charles Rowland @RagingClaw
@D_Fitz_G just read. its calling it before the deletion. printing the Node brings up the tag id.
Dan Fitzgerald @D_Fitz_G
@RagingClaw try printing node.GetObject() - that returns the object the tag is attached to, if it's been deleted it shouldn't be attached to
Dan Fitzgerald @D_Fitz_G
@RagingClaw anything and that should return 'None' (hopefully)
Charles Rowland @RagingClaw
@D_Fitz_G this is the code block http://t.co/fKe3hagUqv
Charles Rowland @RagingClaw
@D_Fitz_G this is after pushing delete 1 time http://t.co/LqCpWYahMO
Charles Rowland @RagingClaw
@D_Fitz_G looks good at first glance, but then…. if i push a BUTTON on the tag (after clearing console) http://t.co/dOeiiNEvYF
Charles Rowland @RagingClaw
@D_Fitz_G looks that hidden null is titled the same as the tags id, so i could compare lists when MSG_EDIT is called, but that sucks
Charles Rowland @RagingClaw
@D_Fitz_G but ultimately i don't want to use a null at all, i want to store them in memory but can't get that working
Dan Fitzgerald @D_Fitz_G
@RagingClaw ah that's pretty weird, are both outputs being sent by the same copy of the tag? I wonder if it's making a copy for undo
Dan Fitzgerald @D_Fitz_G
@RagingClaw or you could try the opposite, on Free() check the tags of the object your tag was attached to, see if your tag is still there,
Dan Fitzgerald @D_Fitz_G
@RagingClaw would need to keep a reference in your code of which object you were on, then try using GetTags() on it
Charles Rowland @RagingClaw
@D_Fitz_G thats what I'm trying now
Dan Fitzgerald @D_Fitz_G
@RagingClaw cool, let me know if it works out
Charles Rowland @RagingClaw
@D_Fitz_G this is interesting, the Init() method is called when deleting the tag. WTF?
Charles Rowland @RagingClaw
@D_Fitz_G if init() is called, hmmm i have an idea
Dan Fitzgerald @D_Fitz_G
@RagingClaw intriguing - I'm about to watch an episode of Angel, I'll check in again afterwards!
Dan Fitzgerald @D_Fitz_G
@RagingClaw any luck?
Charles Rowland @RagingClaw
@D_Fitz_G not unless you count that all the punching on my desk hasn't broken the desk or my hand.. then, thats luck.. so, no. BAH!
Charles Rowland @RagingClaw
@D_Fitz_G i tried making a global flag and hitting in during init() but that too is registering twice at a time. le sigh.
Charles Rowland @RagingClaw
@D_Fitz_G i have to grill dinner. when I'm done, ill put together a dummy tag plugin and put it up on the forum. maybe someone can get it
@RagingClaw good plan. I'm out of ideas for now but if I think of anything I'll let you know
Dan Fitzgerald @D_Fitz_G
@RagingClaw seems like there should be a super simple way to do this, hopefully someone else has some more info we're missing
Charles Rowland @RagingClaw
right! why the hell is there no destroy method
Dan Fitzgerald @D_Fitz_G
@RagingClaw I'm off to bed, good luck!
for those curious, I grilled some brats and they were delicious