2020-03-04 17:45:19 +01:00
|
|
|
from arm.logicnode.arm_nodes import *
|
|
|
|
|
2020-09-08 21:16:20 +02:00
|
|
|
class ChromaticAberrationSetNode(ArmLogicTreeNode):
|
2020-10-05 19:55:56 +02:00
|
|
|
"""Set the chromatic aberration post-processing settings."""
|
2020-03-04 17:45:19 +01:00
|
|
|
bl_idname = 'LNChromaticAberrationSetNode'
|
2020-09-29 18:38:17 +02:00
|
|
|
bl_label = 'Set CA Settings'
|
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(ChromaticAberrationSetNode, self).init(context)
|
2020-09-08 21:49:02 +02:00
|
|
|
self.add_input('ArmNodeSocketAction', 'In')
|
|
|
|
self.add_input('NodeSocketFloat', 'Strength', default_value=2.0)
|
|
|
|
self.add_input('NodeSocketInt', 'Samples', default_value=32)
|
2020-11-17 16:01:15 +01:00
|
|
|
|
2020-09-08 21:49:02 +02:00
|
|
|
self.add_output('ArmNodeSocketAction', 'Out')
|