armory/blender/arm/logicnode/light/LN_set_light_strength.py
Moritz Brückner 96aa0ee890 Use custom sockets for default data types
This allows to listen for socket updates for the live patch system
2021-07-10 21:46:44 +02:00

16 lines
550 B
Python

from arm.logicnode.arm_nodes import *
class SetLightStrengthNode(ArmLogicTreeNode):
"""Sets the strenght of the given light."""
bl_idname = 'LNSetLightStrengthNode'
bl_label = 'Set Light Strength'
arm_version = 1
def init(self, context):
super(SetLightStrengthNode, self).init(context)
self.add_input('ArmNodeSocketAction', 'In')
self.add_input('ArmNodeSocketObject', 'Light')
self.add_input('ArmFloatSocket', 'Strength', default_value=250)
self.add_output('ArmNodeSocketAction', 'Out')