Post #4185:
mi
π Metadata
- Author: roaoao
- Date: 2022-01-31 12:09:20
- Type:
answer - Quality Score: 8/10
- Reply to: post_04183
- Replies (1): post_04190
π·οΈ Tags
macro scripting intermediate solved
βοΈ Related PME Features
- Macro Editor
- Python Scripting
π¬ Content
mijuku:
I want to make a macro, convert the object to mesh and keep the original object, and then disable the original object in the viewport.
Hi @mijuku,
You donβt need a macro operator in this case. Use this code in Command tab:
sel_obj_names = [o.name for o in C.selected_objects]; bpy.ops.object.convert(target='MESH', keep_original=True); [setattr(D.objects[n], "hide_select", True) for n in sel_obj_names]
β€οΈ 2 likes