本文整理汇总了Python中nodeitems_utils.register_node_categories函数的典型用法代码示例。如果您正苦于以下问题:Python register_node_categories函数的具体用法?Python register_node_categories怎么用?Python register_node_categories使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了register_node_categories函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: register
def register():
bpy.utils.register_class(HookSocketType)
bpy.utils.register_class(MyCustomNode)
bpy.utils.register_class(HookNode)
bpy.utils.register_class(StrangeInput)
bpy.utils.register_class(StrangeOutput)
nodeitems_utils.register_node_categories("REIGHLEYNODES", node_categories)
示例2: register
def register():
bpy.utils.register_class(MyCustomTree)
bpy.utils.register_class(MyCustomSocket)
bpy.utils.register_class(MyCustomNode)
bpy.utils.register_class(MyCustomGroup)
nodeitems_utils.register_node_categories("CUSTOM_NODES", node_categories)
示例3: register
def register():
bpy.utils.register_class(CrowdMasterTree)
bpy.utils.register_class(DefaultSocket)
bpy.utils.register_class(StateSocket)
bpy.utils.register_class(DependanceSocket)
bpy.utils.register_class(LogicNode)
bpy.utils.register_class(StateNode)
bpy.utils.register_class(InputNode)
bpy.utils.register_class(GraphNode)
bpy.utils.register_class(AndNode)
bpy.utils.register_class(OrNode)
bpy.utils.register_class(StrongNode)
bpy.utils.register_class(WeakNode)
bpy.utils.register_class(QueryTagNode)
bpy.utils.register_class(SetTagNode)
bpy.utils.register_class(VariableNode)
bpy.utils.register_class(FilterNode)
bpy.utils.register_class(MapNode)
bpy.utils.register_class(OutputNode)
bpy.utils.register_class(PriorityNode)
bpy.utils.register_class(EventNode)
bpy.utils.register_class(PythonNode)
bpy.utils.register_class(PrintNode)
bpy.utils.register_class(StartState)
bpy.utils.register_class(ActionState)
bpy.utils.register_class(NoteNode)
nodeitems_utils.register_node_categories("CrowdMaster_NODES", node_categories)
示例4: register
def register():
bpy.utils.register_class(CrowdMasterTree)
bpy.utils.register_class(DefaultSocket)
bpy.utils.register_class(StateSocket)
bpy.utils.register_class(DependanceSocket)
bpy.utils.register_class(LogicNode)
bpy.utils.register_class(StateNode)
bpy.utils.register_class(NewInputNode)
bpy.utils.register_class(GraphNode)
bpy.utils.register_class(MathNode)
bpy.utils.register_class(AndNode)
bpy.utils.register_class(OrNode)
bpy.utils.register_class(NotNode)
bpy.utils.register_class(StrongNode)
bpy.utils.register_class(WeakNode)
bpy.utils.register_class(SetTagNode)
bpy.utils.register_class(FilterNode)
bpy.utils.register_class(MapNode)
bpy.utils.register_class(OutputNode)
bpy.utils.register_class(PriorityNode)
bpy.utils.register_class(PrintNode)
bpy.utils.register_class(StartState)
bpy.utils.register_class(ActionState)
bpy.utils.register_class(NoteNode)
bpy.utils.register_class(SimNoteTextFromClipboard)
bpy.utils.register_class(SimNoteClear)
nodeitems_utils.register_node_categories(
"CrowdMaster_NODES", node_categories)
示例5: register
def register():
bpy.utils.register_class(UwatelaNodeTree)
bpy.utils.register_class(UwatelaNodeSocket)
bpy.utils.register_class(UwatelaMeshMoveNode)
bpy.utils.register_class(UwatelaObjectInputNode)
nodeitems_utils.register_node_categories("UWATELA", node_categories)
示例6: reload_menu
def reload_menu():
menu, node_count, original_categories = make_categories()
if 'SVERCHOK' in nodeitems_utils._node_categories:
nodeitems_utils.unregister_node_categories("SVERCHOK")
nodeitems_utils.register_node_categories("SVERCHOK", menu)
build_help_remap(original_categories)
示例7: register
def register():
menu, node_count = make_categories()
if 'SVERCHOK' in nodeitems_utils._node_categories:
nodeitems_utils.unregister_node_categories("SVERCHOK")
nodeitems_utils.register_node_categories("SVERCHOK", menu)
print("\n** Sverchok loaded with {i} nodes **".format(i=node_count))
示例8: register
def register():
from . import ui
from . import properties
preferences.register()
properties.register()
ui.register()
node_tree.register()
sockets.register()
export_avango.register()
starter.register()
nodes.register()
bpy.utils.register_module(__name__)
# Idee: root am SceneGraph
# 1.)
# alle objects haben CollectionProperty,
# sollte beim exportieren des scene graphs ein die CollectionProperty eines
# Hierarchieknotens leer sein, wird ein default FieldContainer des
# passenden typs erstellt
# 2.) wenn ein Node gelöscht wird, soll auf referenzierten blender objecten
# vorher die Referenz auf diesen Node entfernt werden
#bpy.types.Object.avango_nodes = bpy.props.CollectionProperty(
# type=bpy.types.PropertyGroup)
if 'AVANGO_NODES' in nu._node_categories:
nu.unregister_node_categories('AVANGO_NODES')
nu.register_node_categories('AVANGO_NODES', node_categories)
示例9: register
def register():
bpy.utils.register_module(__name__)
try:
nodeitems_utils.register_node_categories("CG_PIPELINE_NODES", node_categories)
reload_blend_data()
except:
pass
示例10: register
def register():
registerIfPossible(__name__)
for moduleName in moduleNames:
registerIfPossible(moduleName)
categories = mn_node_register.getNodeCategories()
register_node_categories("ANIMATIONNODES", categories)
bpy.types.Scene.mn_settings = PointerProperty(type = AnimationNodesSettings, name = "Animation Node Settings")
示例11: register
def register():
for cls in classes:
bpy.utils.register_class(cls)
bpy.types.Scene.splash = PointerProperty(type=SplashSettings)
import nodeitems_utils
nodeitems_utils.register_node_categories("SPLASH_NODES", nodes.node_categories)
示例12: register
def register():
bpy.utils.register_class(NodeComment)
bpy.utils.register_class(CommentNode)
try:
nodeitems_utils.register_node_categories("COMMENT_NODES", comment_node_categories)
except:
pass
示例13: register
def register():
bpy.utils.register_class(B4W_LogicEditorErrTextWrap)
bpy.utils.register_class(B4W_LogicEditorErrors)
bpy.utils.register_class(B4W_LogicNodeTree)
bpy.utils.register_class(B4W_LogicNode)
bpy.utils.register_class(B4W_LogicNodeJumpSocket)
bpy.utils.register_class(B4W_LogicNodeOrderSocket)
nodeitems_utils.register_node_categories("B4W_LOGIC_CUSTOM_NODES", node_categories)
register_hotkey()
示例14: register
def register():
bpy.utils.register_module(__name__)
nodeitems_utils.register_node_categories("POVRAYNODES", node_categories)
bpy.types.DATA_PT_metaball.append(menu_func_meta)
bpy.types.INFO_MT_add.append(menu_func_add)
bpy.types.INFO_MT_file_import.append(menu_func_import)
bpy.types.NODE_HT_header.append(menu_func_nodes)
bpy.types.PARTICLE_PT_cache.append(menu_func_particles_bake)
bpy.types.WORLD_PT_context_world.append(menu_func_world)
示例15: register
def register():
util.safe_register_class(AppleseedOSLNodeTree)
node_list = util.read_osl_shaders()
for node in node_list:
try:
node_name, node_category = oslnode.generate_node(node)
osl_node_names.append([node_name, node_category])
except:
pass
register_node_categories("APPLESEED", node_categories(osl_node_names))