LNXSDK/leenkx/blender/lnx/logicnode/scene/LN_create_collection.py

16 lines
489 B
Python
Raw Normal View History

2025-01-22 16:18:30 +01:00
from lnx.logicnode.lnx_nodes import *
class CreateCollectionNode(LnxLogicTreeNode):
"""Creates a collection."""
bl_idname = 'LNAddGroupNode'
bl_label = 'Create Collection'
lnx_section = 'collection'
lnx_version = 2
def lnx_init(self, context):
self.add_input('LnxNodeSocketAction', 'In')
self.add_input('LnxStringSocket', 'Collection')
self.add_input('LnxNodeSocketArray', 'Objects')
self.add_output('LnxNodeSocketAction', 'Out')