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

14 lines
443 B
Python

from lnx.logicnode.lnx_nodes import *
class PickLocationNode(LnxLogicTreeNode):
"""Pick a location coordinates in the given NavMesh."""
bl_idname = 'LNPickLocationNode'
bl_label = 'Pick NavMesh Location'
lnx_version = 1
def lnx_init(self, context):
self.add_input('LnxNodeSocketObject', 'NavMesh')
self.add_input('LnxVectorSocket', 'Screen Coords')
self.add_output('LnxVectorSocket', 'Location')