is fairly simple to place a plugin in the rightclick menu context of a icenode/shadernode:
Code: Select all
in_reg.RegisterMenu(constants.siMenuICENodeContextID,"test_Menu",false,false)
or
in_reg.RegisterMenu(constants.siMenuRTNodeContextID,"test_Menu",false,false)
As duplicate does't seem to work, i use copy/paste.
Code: Select all
Application.Copy("Sources.Materials.DefaultLib.Scene_Material.Phong")
Application.Paste("Sources.Materials.DefaultLib.Scene_Material")
how do i get all the node's parameters i just right clicked on to be linked to the new copy?
(using python)