LNXSDK/leenkx/blender/lnx/logicnode/light/LN_set_light_strength.py
2025-01-22 16:18:30 +01:00

15 lines
498 B
Python

from lnx.logicnode.lnx_nodes import *
class SetLightStrengthNode(LnxLogicTreeNode):
"""Sets the strenght of the given light."""
bl_idname = 'LNSetLightStrengthNode'
bl_label = 'Set Light Strength'
lnx_version = 1
def lnx_init(self, context):
self.add_input('LnxNodeSocketAction', 'In')
self.add_input('LnxNodeSocketObject', 'Light')
self.add_input('LnxFloatSocket', 'Strength', default_value=250)
self.add_output('LnxNodeSocketAction', 'Out')