Post #4974: I have understood the operational conditions of the script and created a macro u
π Metadata
- Author: Pluglug
- Date: 2023-12-13 12:20:51
- Type:
bug_report - Quality Score: 7/10
- Reply to: post_04972
- Replies (1): post_04975
π·οΈ Tags
macro scripting intermediate unsolved
βοΈ Related PME Features
- Macro Editor
- Python Scripting
π¬ Content
I have understood the operational conditions of the script and created a macro using it. Please check if it functions as follows:
AutoObjectSwitcher.json (1.1 KB)
print(f"Object renamed to {new_name} and selected as the active object.")
This message might have led you to believe that the object was being renamed, but thatβs not actually the case, right? The script operates by selecting an object with a specific suffix. Therefore, the output message should be appropriately modified to:
print(f"Selected object: {new_name}")
This script could crash Blender if there is no object with the intended name, which I think is a significant risk. Therefore, I strongly recommend adding proper error handling to the script.