Test submenu creation in example

This commit is contained in:
Luke Campagnola 2014-11-14 08:06:18 -05:00
parent 2ac343ac37
commit 85d6c86c67

View File

@ -127,7 +127,10 @@ class UnsharpMaskNode(CtrlNode):
## NodeLibrary: ## NodeLibrary:
library = fclib.LIBRARY.copy() # start with the default node set library = fclib.LIBRARY.copy() # start with the default node set
library.addNodeType(ImageViewNode, [('Display',)]) library.addNodeType(ImageViewNode, [('Display',)])
library.addNodeType(UnsharpMaskNode, [('Image',)]) # Add the unsharp mask node to two locations in the menu to demonstrate
# that we can create arbitrary menu structures
library.addNodeType(UnsharpMaskNode, [('Image',),
('Submenu_test','submenu2','submenu3')])
fc.setLibrary(library) fc.setLibrary(library)