Post #4975: Thank You for the looking after for all of this, really appreciate!

📋 Metadata

🏷️ Tags

macro modal-operations advanced solved

  • Macro Editor
  • Modal Editor
  • Object selection and mode switching

💬 Content

Thank You for the looking after for all of this, really appreciate!
The video You linked, at :13 is almost what i’m looking for, with a little extension:
at the end of the scaling of instance mesh i need to get back to ExampleObject12345 (which is btw the _Baked object)
so in a nutshell (sorry i thought i already described the purpose of this mess :))
1-i have an object ****_Baked already selected
2-then i select ***_vgroup_Instance_Mesh (or whatever) object
3-then go to edit mode want to make transform (in this case scale) and when i’m ready,
4-then go back to object mode and select ****_Baked object again

yep comments are a bit fuzzy, since i’m using chatgpt (yes i’m the one who should be hated here :D) and sometimes comments are just left it as they were since i’m doing major changes in the code
Also Thank You for the tip about the crash, i (and my buddy chatgpt :P) will make an ‘if else’ to fix that issue :slight_smile:

I will check Your stuff when i can get to my WS again, and Thank You again, let You know if i got any results!

Hey Pluglug
i just tested your json and it works as it should, if i turn off Confirm on Release (because i want to type into the scale field), but i don’t understand how the context menu of scale is still editing the instance mesh in edit mode, despite the fact another object is selected as active selection and we are in object mode :slight_smile:
i didn’t even touch the code, so it was really a problem with my modal operation setting.

This is what i was looking for, just a bit bother me why it is working like this and i still don’t understand since i did the very same thing in my transform macro, and i though i have to use modal to define when i want to go back to my initialy (_Baked) object.
The only thing i can think of that, when the macro activates the resize tool, the only thing it counts is what object is selected in edit mode in that moment, and no matter what i’m doing after the activation of resize tool, the resize tool assign is kept on that object was selected at the activation of the resize tool.
That’s a nice trick, but i think it’s totally out of the handbook, and logic would say that a modal operator would needed to do such things.

Anyhow, Thank You again for the help! :slight_smile:

btw i was looking for asking this later, but since we are here :)…
Is there a way to tell to a Panel Group which Popup Dialog should be visible (active/executed) depending on a parameret (for example name of an object)
Or to tell to any PIE operator slot, what should it load in (macro, py file) depending on a condition.
I’m pretty sure You have an anwer for that :smiley:
It would boost up my menu if i could decide by object name (or certain characters in object name) what macro/py should load in.

And i still have to try out your awesome suggestion about creating a Popup Dialog as a manually closeable window
It would be a gamechanger in GUI handling since this side panel is not the best for me, and there are a lot of unused space depending on the working context, and with floating popups (which are not closing if i click outside of them haha) would be more efficient to use blender workspaces.


❤️ 1 likes


🔗 View on Blender Artists