forked from LeenkxTeam/LNXSDK
Update Files
This commit is contained in:
31
leenkx/blender/lnx/logicnode/custom/LN_get_blob_url.py
Normal file
31
leenkx/blender/lnx/logicnode/custom/LN_get_blob_url.py
Normal file
@ -0,0 +1,31 @@
|
||||
from lnx.logicnode.lnx_nodes import *
|
||||
|
||||
|
||||
class GetBlobUrlNode(LnxLogicTreeNode):
|
||||
"""Get Blob Url"""
|
||||
bl_idname = 'LNGetBlobUrlNode'
|
||||
bl_label = 'Get Blob Url'
|
||||
bl_description = 'Get Blob Url'
|
||||
lnx_category = 'HTML'
|
||||
lnx_version = 1
|
||||
|
||||
property0: HaxeEnumProperty(
|
||||
'property0',
|
||||
items = [('file', 'File', 'Get Blob URL From File'),
|
||||
('object', 'Object', 'Get Blob URL From Object'),
|
||||
('video', 'Video', 'Get Blob URL From Video'),
|
||||
('canvas', 'Canvas', 'Get Blob URL From Canvas')],
|
||||
name='', default='file')
|
||||
|
||||
def lnx_init(self, context):
|
||||
self.add_input('LnxDynamicSocket', 'Data')
|
||||
|
||||
self.add_output('LnxStringSocket', 'Url')
|
||||
|
||||
def draw_buttons(self, context, layout):
|
||||
layout.prop(self, 'property0')
|
||||
|
||||
|
||||
def register():
|
||||
add_category('HTML', icon='SEQ_STRIP_META')
|
||||
GetBlobUrlNode.on_register()
|
Reference in New Issue
Block a user