Add files via upload

master
t3du 2022-01-04 16:57:01 -03:00 committed by GitHub
parent 6810927b92
commit eabff69c4b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 30 additions and 0 deletions

View File

@ -0,0 +1,15 @@
from arm.logicnode.arm_nodes import *
class AddObjectToGroupNode(ArmLogicTreeNode):
"""Add Object to a collection."""
bl_idname = 'LNAddObjectToGroupNode'
bl_label = 'Add Object to Collection'
arm_section = 'collection'
arm_version = 1
def arm_init(self, context):
self.add_input('ArmNodeSocketAction', 'In')
self.add_input('ArmStringSocket', 'Collection')
self.add_input('ArmNodeSocketObject', 'Object')
self.add_output('ArmNodeSocketAction', 'Out')

View File

@ -0,0 +1,15 @@
from arm.logicnode.arm_nodes import *
class RemoveObjectFromGroupNode(ArmLogicTreeNode):
"""Remove Object from a collection."""
bl_idname = 'LNRemoveObjectFromGroupNode'
bl_label = 'Remove Object from Collection'
arm_section = 'collection'
arm_version = 1
def arm_init(self, context):
self.add_input('ArmNodeSocketAction', 'In')
self.add_input('ArmStringSocket', 'Collection')
self.add_input('ArmNodeSocketObject', 'Object')
self.add_output('ArmNodeSocketAction', 'Out')