Skip to content

Commit 6debd0e

Browse files
committed
Cleanup pipeline
1 parent 6ced964 commit 6debd0e

File tree

1 file changed

+9
-17
lines changed

1 file changed

+9
-17
lines changed

Cider/LinePipeline.py

Lines changed: 9 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -62,24 +62,16 @@ def set_min_max(param, min, max):
6262
Keep it withing the 1-2 range for best results.""")
6363

6464
# Cider maps parameters.material to FreestyleLineStyle but will show up in the material panel
65-
self.parameters.material['line.color'] = Parameter((0.0,0.0,0.0,1.0), Type.FLOAT, size=4, doc="Width Units")
66-
self.parameters.material['line.width_scale'] = Parameter(2.0, Type.FLOAT, doc="Width Scale")
67-
set_min_max(self.parameters.material['line.width_scale'], 0.0, 10.0)
65+
self.parameters.material['line.color'] = Parameter((0.0,0.0,0.0,1.0), Type.FLOAT, size=4, doc="Line Color")
66+
self.parameters.material['line.width_scale'] = FloatParameter(2.0, min=0.0, max=10.0, doc="Width Scale")
6867
self.parameters.material['line.width_units'] = EnumParameter(['Pixel', 'Screen', 'World'], 'Pixel', Type.ENUM, doc="Width Units")
69-
self.parameters.material['line_depth.width'] = Parameter(1.0, Type.FLOAT, doc="Depth Width")
70-
set_min_max(self.parameters.material['line_depth.width'], 0.0, 1.0)
71-
self.parameters.material['line_depth.threshold'] = Parameter(0.1, Type.FLOAT, doc="Depth Threshold")
72-
set_min_max(self.parameters.material['line_depth.threshold'], 0.0, 1.0)
73-
self.parameters.material['line_depth.threshold_range'] = Parameter(0.0, Type.FLOAT, doc="Depth Threshold Range")
74-
set_min_max(self.parameters.material['line_depth.threshold_range'], 0.0, 1.0)
75-
self.parameters.material['line_normal.width'] = Parameter(1.0, Type.FLOAT, doc="Normal Width")
76-
set_min_max(self.parameters.material['line_normal.width'], 0.0, 1.0)
77-
self.parameters.material['line_normal.threshold'] = Parameter(0.5, Type.FLOAT, doc="Normal Threshold")
78-
set_min_max(self.parameters.material['line_normal.threshold'], 0.0, 1.0)
79-
self.parameters.material['line_normal.threshold_range'] = Parameter(0.0, Type.FLOAT, doc="Normal Threshold Range")
80-
set_min_max(self.parameters.material['line_normal.threshold_range'], 0.0, 1.0)
81-
self.parameters.material['line_object.boundary_width'] = Parameter(1.0, Type.FLOAT, doc="Object Boundary Width")
82-
set_min_max(self.parameters.material['line_object.boundary_width'], 0.0, 1.0)
68+
self.parameters.material['line_depth.width'] = FloatParameter(1.0, min=0.0, max=1.0, doc="Depth Width")
69+
self.parameters.material['line_depth.threshold'] = FloatParameter(0.1, min=0.0, max=1.0, doc="Depth Threshold")
70+
self.parameters.material['line_depth.threshold_range'] = FloatParameter(0.0, min=0.0, max=1.0, doc="Depth Threshold Range")
71+
self.parameters.material['line_normal.width'] = FloatParameter(1.0, min=0.0, max=1.0, doc="Normal Width")
72+
self.parameters.material['line_normal.threshold'] = FloatParameter(0.5, min=0.0, max=1.0, doc="Normal Threshold")
73+
self.parameters.material['line_normal.threshold_range'] = FloatParameter(0.0, min=0.0, max=1.0, doc="Normal Threshold Range")
74+
self.parameters.material['line_object.boundary_width'] = FloatParameter(1.0, min=0.0, max=1.0, doc="Object Boundary Width")
8375

8476
def setup_resources(self):
8577
super().setup_resources()

0 commit comments

Comments
 (0)