Post #5239: Nevermind. I was written the answer and just to be sure run a test with using bp
📋 Metadata
- Author: SoundDifferent
- Date: 2024-10-02 11:12:03
- Type:
bug_report - Quality Score: 6/10
- Reply to: post_05235
🏷️ Tags
macro scripting intermediate solved
⚙️ Related PME Features
- Macro Editor
- Python Scripting
💬 Content
Nevermind. I was written the answer and just to be sure run a test with using bpy.context.space_data.shading.type = ‘SOLID’ as previously. And surpringly - it works.
For me it seems what something happened in PME after fresh installation and importing already existed pie menues.
I.e. first attempt to run my previous macro with bpy.context.space_data.shading.type = ‘SOLID’ are simply fail, and i was need to use a custom script runned from disk to make it works. But after this when i switch macro command back to bpy.context.space_data.shading.type = ‘SOLID’ - it start working.
Another example is using some operator from Forgotten Tools addon.
I was trying to run a macro from my PME which contains some operator from this addon, and PME throw an error basically tolds what the operator doesnt exist.
That was my fault because i forget to install the addon first.
But after addon installation, attempting to run the script - agait throw the same error.
To solve that issue i copy the addon command from info and paste it again into my macro. So i literally copy the exact same operator into macro menu and only after it start to work again as expected.
❤️ 1 likes