Post #5058: If you know what you need to do, why not just specify an argument to Exec?
📋 Metadata
- Author: Pluglug
- Date: 2024-03-05 14:17:41
- Type:
answer - Quality Score: 8/10
- Reply to: post_05057
- Replies (1): post_05060
🏷️ Tags
⚙️ Related PME Features
- Python Scripting
- Macro Editor
💬 Content
If you know what you need to do, why not just specify an argument to Exec?
This is an example of setting the Y-axis scale to 0.
bpy.ops.transform.resize('EXEC_DEFAULT', True, value=(1.0, 0.0, 1.0), constraint_axis=[False, True, False])
Any other method would be a complex or unusable implementation.