forked from LeenkxTeam/LNXSDK
Repe [T3DU] Update - 31f26d171bba0355ce2a77031e3aad4c64dbc7e9
This commit is contained in:
13
leenkx/blender/lnx/logicnode/light/LN_get_area_light_data.py
Normal file
13
leenkx/blender/lnx/logicnode/light/LN_get_area_light_data.py
Normal file
@ -0,0 +1,13 @@
|
||||
from lnx.logicnode.lnx_nodes import *
|
||||
|
||||
class GetAreaLightDataNode(LnxLogicTreeNode):
|
||||
"""Gets the data of the given area light."""
|
||||
bl_idname = 'LNGetAreaLightDataNode'
|
||||
bl_label = 'Get Area Light Data'
|
||||
lnx_version = 1
|
||||
|
||||
def lnx_init(self, context):
|
||||
self.add_input('LnxNodeSocketObject', 'Light')
|
||||
|
||||
self.add_output('LnxFloatSocket', 'Size X')
|
||||
self.add_output('LnxFloatSocket', 'Size Y')
|
||||
15
leenkx/blender/lnx/logicnode/light/LN_get_light_data.py
Normal file
15
leenkx/blender/lnx/logicnode/light/LN_get_light_data.py
Normal file
@ -0,0 +1,15 @@
|
||||
from lnx.logicnode.lnx_nodes import *
|
||||
|
||||
class GetLightDataNode(LnxLogicTreeNode):
|
||||
"""Get lights data info."""
|
||||
bl_idname = 'LNGetLightDataNode'
|
||||
bl_label = 'Get Light Data'
|
||||
lnx_version = 1
|
||||
|
||||
def lnx_init(self, context):
|
||||
self.add_input('LnxNodeSocketObject', 'Light')
|
||||
|
||||
self.add_output('LnxIntSocket', 'Type')
|
||||
self.add_output('LnxFloatSocket', 'Strength')
|
||||
self.add_output('LnxColorSocket', 'Color')
|
||||
self.add_output('LnxBoolSocket', 'Shadow')
|
||||
13
leenkx/blender/lnx/logicnode/light/LN_get_spot_light_data.py
Normal file
13
leenkx/blender/lnx/logicnode/light/LN_get_spot_light_data.py
Normal file
@ -0,0 +1,13 @@
|
||||
from lnx.logicnode.lnx_nodes import *
|
||||
|
||||
class GetSpotLightDataNode(LnxLogicTreeNode):
|
||||
"""Gets the data of the given spot light."""
|
||||
bl_idname = 'LNGetSpotLightDataNode'
|
||||
bl_label = 'Get Spot Light Data'
|
||||
lnx_version = 1
|
||||
|
||||
def lnx_init(self, context):
|
||||
self.add_input('LnxNodeSocketObject', 'Light')
|
||||
|
||||
self.add_output('LnxFloatSocket', 'Size')
|
||||
self.add_output('LnxFloatSocket', 'Blend')
|
||||
Reference in New Issue
Block a user