22 lines
595 B
Python
22 lines
595 B
Python
from lnx.logicnode.lnx_nodes import *
|
|
|
|
|
|
class GetElementPropertyNode(LnxLogicTreeNode):
|
|
"""Get Element Property"""
|
|
bl_idname = 'LNGetElementPropertyNode'
|
|
bl_label = 'Get Element Property'
|
|
bl_description = 'Get Element Property'
|
|
lnx_category = 'HTML'
|
|
lnx_version = 1
|
|
|
|
def lnx_init(self, context):
|
|
self.add_input('LnxDynamicSocket', 'Element')
|
|
self.add_input('LnxStringSocket', 'Property')
|
|
|
|
self.add_output('LnxDynamicSocket', 'Value')
|
|
|
|
|
|
def register():
|
|
add_category('HTML', icon='SEQ_STRIP_META')
|
|
GetElementPropertyNode.on_register()
|