Post #3417: You can do this by adding each separately.
📋 Metadata
- Author: noKeyframes
- Date: 2020-07-05 05:25:47
- Type:
answer - Quality Score: 8/10
- Reply to: post_03415
- Replies (1): post_03420
🏷️ Tags
macro python-scripting intermediate
⚙️ Related PME Features
- Macro Editor
- Python Scripting
💬 Content
You can do this by adding each separately.
- modifier:
bpy.ops.object.modifier_add(True, type='DECIMATE') - x tells you the las modifier added:
x = C.object.modifiers[len(C.object.modifiers)-1] - using x you change the different parameters from the last modifier:
x.decimate_type = 'DISSOLVE'
x.angle_limit = 0.349066
x.use_dissolve_boundaries = True
Here is the one line code, you can add this in the command tab
bpy.ops.object.modifier_add(True, type='DECIMATE'); x = C.object.modifiers[len(C.object.modifiers)-1]; x.decimate_type = 'DISSOLVE'; x.angle_limit = 0.349066; x.use_dissolve_boundaries = True
Following the steps you can add any type and number of modifiers in a macro with custom settings
Hope it helps.
❤️ 1 likes