forked from LeenkxTeam/LNXSDK
t3du - Add SetLightShadowNode for controlling light shadows
This commit is contained in:
14
leenkx/blender/lnx/logicnode/light/LN_set_light_shadow.py
Normal file
14
leenkx/blender/lnx/logicnode/light/LN_set_light_shadow.py
Normal file
@ -0,0 +1,14 @@
|
||||
from lnx.logicnode.lnx_nodes import *
|
||||
|
||||
class SetLightShadowNode(LnxLogicTreeNode):
|
||||
"""Sets the shadow boolean of the given light."""
|
||||
bl_idname = 'LNSetLightShadowNode'
|
||||
bl_label = 'Set Light Shadow'
|
||||
lnx_version = 1
|
||||
|
||||
def lnx_init(self, context):
|
||||
self.add_input('LnxNodeSocketAction', 'In')
|
||||
self.add_input('LnxNodeSocketObject', 'Light')
|
||||
self.add_input('LnxBoolSocket', 'Shadow')
|
||||
|
||||
self.add_output('LnxNodeSocketAction', 'Out')
|
Reference in New Issue
Block a user