Files
LNXSDK/leenkx/blender/lnx/logicnode/camera/LN_set_camera_projection.py

16 lines
536 B
Python
Raw Normal View History

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')