Files
LNXSDK/leenkx/blender/lnx/logicnode/custom/LN_seed_torrent.py

32 lines
1.0 KiB
Python
Raw Normal View History

2025-01-22 16:18:30 +01:00
from lnx.logicnode.lnx_nodes import *
class SeedTorrentNode(LnxLogicTreeNode):
"""Seed Torrent"""
bl_idname = 'LNSeedTorrentNode'
bl_label = 'Seed Torrent'
bl_description = 'Seed a torrent file from the network'
lnx_category = 'Leenkx'
lnx_version = 1
def __init__(self, *args, **kwargs):
super(SeedTorrentNode, self).__init__(*args, **kwargs)
2025-01-22 16:18:30 +01:00
array_nodes[str(id(self))] = self
def lnx_init(self, context):
self.add_input('LnxNodeSocketAction', 'In')
self.add_input('LnxDynamicSocket', 'Connection')
2026-10-06 02:10:08 -07:00
self.add_input('LnxDynamicSocket', 'Torrent')
2025-01-22 16:18:30 +01:00
self.add_input('LnxDynamicSocket', 'Data')
self.add_output('LnxNodeSocketAction', 'Out')
self.add_output('LnxDynamicSocket', 'Torrent')
self.add_output('LnxNodeSocketAction', 'Done')
2026-10-06 02:10:08 -07:00
self.add_output('LnxStringSocket', 'InfoHash')
self.add_output('LnxStringSocket', 'Magnet')
2025-01-22 16:18:30 +01:00
def register():
add_category('Leenkx', icon='ORIENTATION_CURSOR')
SeedTorrentNode.on_register()