kill scriptJob with node

107 views
Skip to first unread message

vux

unread,
May 5, 2012, 7:09:45 PM5/5/12
to python_in...@googlegroups.com
Hi all. I have 2 questions
1.
Maya documentation of scriptJob attributeChange event quote:
Run the script when the named attribute changes value. The string must identify both the dependency node and the particular attribute. If the dependency node is deleted, this job is killed (even if the deletion is undoable).

But when i delete node scriptJob does not deleted. Why???

2. At now, I delete my scriptJob with MNodeMessage.addNodePreRemovalCallback(). I works good, and if i delete my node scriptJob deleted too. But maybe i want undo delete of node. So i need auto-recreate scriptJob again. Bu how??? I simple want to undo deletion of scriptJob with deletion of node

notanymike

unread,
May 22, 2012, 4:40:16 PM5/22/12
to python_in...@googlegroups.com
Are you wanting to restore the data the killed callback had as well as the callback, or just the killed callback?
Reply all
Reply to author
Forward
0 new messages