Post #3970: You can call the last modifier created by changing the name to -1
📋 Metadata
- Author: Motiomancer
- Date: 2021-08-07 15:27:50
- Type:
answer - Quality Score: 8/10
- Reply to: post_03967
- Replies (1): post_03980
🏷️ Tags
⚙️ Related PME Features
- Macro Editor
- Python Scripting
💬 Content
You can call the last modifier created by changing the name to -1
Example:
This calls a specific modifier
bpy.context.object.modifiers["Solidify"].thickness = 2
This calls the last created and tries to change the thickness
bpy.context.object.modifiers[-1].thickness = 2
❤️ 1 likes