3dleo
03-03-2011, 01:33 PM
Hello!!
I have been using MEL for a while. I have created a small plugin using MEL, which creates a main node that holds the plugs of many other nodes and thus controls their pocesses. The main node can be deleted using the delete option in the plugin's menu which systematicaly removes all the nodes from the scene without leaving any junk nodes, but the main node also can be deleted directly from the outliner. That will leave all dependent nodes isolated(no meaning of them without the main node).
1) I want to make the main node non-deletable by the user but it should be deletable using the delete option in the plugins menu.
-or-
2) If the main node is deleted directly by the user, all the dependent nodes should also be deleted automaticaly. I do not want to use scriptNodes or scriptJobs because they themselves can be manipulated by the user.
If you have an API solution, then please give me the complete program that deletes the related nodes if the main node is deleted. please include the headers, class, doit, initializeplugin etc.. because I am weak at that.
I have been using MEL for a while. I have created a small plugin using MEL, which creates a main node that holds the plugs of many other nodes and thus controls their pocesses. The main node can be deleted using the delete option in the plugin's menu which systematicaly removes all the nodes from the scene without leaving any junk nodes, but the main node also can be deleted directly from the outliner. That will leave all dependent nodes isolated(no meaning of them without the main node).
1) I want to make the main node non-deletable by the user but it should be deletable using the delete option in the plugins menu.
-or-
2) If the main node is deleted directly by the user, all the dependent nodes should also be deleted automaticaly. I do not want to use scriptNodes or scriptJobs because they themselves can be manipulated by the user.
If you have an API solution, then please give me the complete program that deletes the related nodes if the main node is deleted. please include the headers, class, doit, initializeplugin etc.. because I am weak at that.