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

17 lines
509 B
Python

from lnx.logicnode.lnx_nodes import *
class CanvasSetAssetNode(LnxLogicTreeNode):
"""Sets the asset of the given UI element."""
bl_idname = 'LNCanvasSetAssetNode'
bl_label = 'Set Canvas Asset'
lnx_section = 'elements_general'
lnx_version = 1
def lnx_init(self, context):
self.add_input('LnxNodeSocketAction', 'In')
self.add_input('LnxStringSocket', 'Element')
self.add_input('LnxStringSocket', 'Asset')
self.add_output('LnxNodeSocketAction', 'Out')