14 lines
527 B
Python
14 lines
527 B
Python
from arm.logicnode.arm_nodes import *
|
|
|
|
class ScreenToWorldSpaceNode(ArmLogicTreeNode):
|
|
"""Use to convert screen coordinates to world coordinates."""
|
|
bl_idname = 'LNScreenToWorldSpaceNode'
|
|
bl_label = 'Screen To World Space'
|
|
arm_version = 1
|
|
|
|
def init(self, context):
|
|
super(ScreenToWorldSpaceNode, self).init(context)
|
|
self.add_input('NodeSocketVector', 'Screen')
|
|
self.add_output('NodeSocketVector', 'World')
|
|
|
|
add_node(ScreenToWorldSpaceNode, category=PKG_AS_CATEGORY, section='matrix')
|