2020-03-04 17:45:19 +01:00
|
|
|
from arm.logicnode.arm_nodes import *
|
|
|
|
|
2020-09-08 21:16:20 +02:00
|
|
|
class CameraGetNode(ArmLogicTreeNode):
|
2020-10-05 19:55:56 +02:00
|
|
|
"""Returns the post-processing effects of a camera."""
|
2020-03-04 17:45:19 +01:00
|
|
|
bl_idname = 'LNCameraGetNode'
|
2020-09-25 00:49:21 +02:00
|
|
|
bl_label = 'Get Camera Post Process'
|
2020-09-13 11:27:58 +02:00
|
|
|
arm_version = 1
|
2020-03-04 17:45:19 +01:00
|
|
|
|
|
|
|
def init(self, context):
|
2020-09-13 11:27:58 +02:00
|
|
|
super(CameraGetNode, self).init(context)
|
2020-09-08 21:49:02 +02:00
|
|
|
self.add_output('NodeSocketFloat', 'F-Stop')
|
|
|
|
self.add_output('NodeSocketFloat', 'Shutter Time')
|
|
|
|
self.add_output('NodeSocketFloat', 'ISO')
|
|
|
|
self.add_output('NodeSocketFloat', 'Exposure Compensation')
|
|
|
|
self.add_output('NodeSocketFloat', 'Fisheye Distortion')
|
|
|
|
self.add_output('NodeSocketBool', 'Auto Focus')
|
|
|
|
self.add_output('NodeSocketFloat', 'DOF Distance')
|
|
|
|
self.add_output('NodeSocketFloat', 'DOF Length')
|
|
|
|
self.add_output('NodeSocketFloat', 'DOF F-Stop')
|
|
|
|
self.add_output('NodeSocketFloat', 'Film Grain')
|