Post #4506: I’m trying to macro some operations but depending on as i enable, disable some o
📋 Metadata
- Author: Adam_Szalai
- Date: 2022-08-16 13:50:06
- Type:
bug_report - Quality Score: 6/10
- Replies (1): post_04513
🏷️ Tags
⚙️ Related PME Features
- Macro Editor
- Python Scripting
💬 Content
I’m trying to macro some operations but depending on as i enable, disable some of them “randomly” in PME, other operations are executing or not.
For example i enable:
bpy.ops.object.shade_smooth()
in my macro list then my modifiers are not adding on when i execute the macro.
Macro should looks like this:
bpy.ops.object.delete_all_modifiers()
bpy.ops.mesh.customdata_custom_splitnormals_clear()
bpy.ops.object.shade_smooth()
bpy.context.object.data.use_auto_smooth = True
bpy.context.object.data.auto_smooth_angle = 3.14159
bpy.ops.object.modifier_add(type=‘BEVEL’)
bpy.context.object.modifiers[“Bevel”].width = 0.023
bpy.context.object.modifiers[“Bevel”].profile = 0.5
bpy.ops.object.modifier_add(type=‘WEIGHTED_NORMAL’)
bpy.context.object.modifiers[“WeightedNormal”].weight = 100
bpy.context.object.modifiers[“WeightedNormal”].keep_sharp = True
I know i’m naive if i’m expecting that macro should work like this 