armory/blender/arm/logicnode/light/LN_set_light_strength.py
2020-09-09 00:28:41 +02:00

15 lines
522 B
Python

from arm.logicnode.arm_nodes import *
class SetLightStrengthNode(ArmLogicTreeNode):
"""Set light strength node"""
bl_idname = 'LNSetLightStrengthNode'
bl_label = 'Set Light Strength'
def init(self, context):
self.add_input('ArmNodeSocketAction', 'In')
self.add_input('ArmNodeSocketObject', 'Object')
self.add_input('NodeSocketFloat', 'Strength', default_value=100)
self.add_output('ArmNodeSocketAction', 'Out')
add_node(SetLightStrengthNode, category=MODULE_AS_CATEGORY)