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