Complete M16 action select circle parity
This commit is contained in:
@@ -56,6 +56,28 @@ def report(task, modifier_type, object_name):
|
||||
| (4 if modifier.use_y else 0)
|
||||
| (8 if modifier.use_z else 0)
|
||||
)
|
||||
if modifier_type == "SOLIDIFY":
|
||||
value["modifier"]["thickness"] = float(modifier.thickness)
|
||||
value["modifier"]["offset"] = float(modifier.offset)
|
||||
if modifier_type == "SUBSURF":
|
||||
value["modifier"]["subdivisionType"] = {"CATMULL_CLARK": 0, "SIMPLE": 1}[modifier.subdivision_type]
|
||||
value["modifier"]["levels"] = int(modifier.levels)
|
||||
value["modifier"]["renderLevels"] = int(modifier.render_levels)
|
||||
if modifier_type == "TRIANGULATE":
|
||||
value["modifier"]["quadMethod"] = {"BEAUTY": 0, "FIXED": 1, "FIXED_ALTERNATE": 2, "SHORTEST_DIAGONAL": 3, "LONGEST_DIAGONAL": 4}[modifier.quad_method]
|
||||
value["modifier"]["ngonMethod"] = {"BEAUTY": 0, "CLIP": 1}[modifier.ngon_method]
|
||||
if modifier_type == "WAVE":
|
||||
value["modifier"]["height"] = float(modifier.height)
|
||||
value["modifier"]["width"] = float(modifier.width)
|
||||
value["modifier"]["speed"] = float(modifier.speed)
|
||||
if modifier_type == "WEIGHTED_NORMAL":
|
||||
value["modifier"]["weight"] = int(modifier.weight)
|
||||
value["modifier"]["keepSharp"] = bool(modifier.keep_sharp)
|
||||
value["modifier"]["useFaceInfluence"] = bool(modifier.use_face_influence)
|
||||
if modifier_type == "WELD":
|
||||
value["modifier"]["mergeThreshold"] = float(modifier.merge_threshold)
|
||||
if modifier_type == "WIREFRAME":
|
||||
value["modifier"]["thickness"] = float(modifier.thickness)
|
||||
return value
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user