forked from LeenkxTeam/LNXSDK
16 lines
536 B
Python
16 lines
536 B
Python
from lnx.logicnode.lnx_nodes import *
|
|
|
|
class SetCameraProjectionNode(LnxLogicTreeNode):
|
|
"""Sets the projection of the given camera."""
|
|
bl_idname = 'LNSetCameraProjectionNode'
|
|
bl_label = 'Set Camera Projection'
|
|
lnx_version = 1
|
|
|
|
def lnx_init(self, context):
|
|
self.add_input('LnxNodeSocketAction', 'In')
|
|
self.add_input('LnxNodeSocketObject', 'Camera')
|
|
self.add_input('LnxIntSocket', 'Width')
|
|
self.add_input('LnxIntSocket', 'Height')
|
|
|
|
self.add_output('LnxNodeSocketAction', 'Out')
|