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

15 lines
493 B
Python

from lnx.logicnode.lnx_nodes import *
class SetCameraAspectNode(LnxLogicTreeNode):
"""Sets the aspect of the given camera."""
bl_idname = 'LNSetCameraAspectNode'
bl_label = 'Set Camera Aspect'
lnx_version = 1
def lnx_init(self, context):
self.add_input('LnxNodeSocketAction', 'In')
self.add_input('LnxNodeSocketObject', 'Camera')
self.add_input('LnxFloatSocket', 'Aspect', default_value=1.7)
self.add_output('LnxNodeSocketAction', 'Out')