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')