Post #2847: : post_02849
🏷️ Tags
macro hotkeys advanced unsolved
⚙️ Related PME Features
- Macro Editor
- Python Scripting
- Hotkey Configuration
💬 Content
roaoao:
Set Offset From Cursoroperator requires acollection.
OK, so then one would need to create an external script to be able to get the name of the current collection, to make the Set Offset From Cursor operator actually useful as a shortcut. And I noticed that selecting on Object belonging to a Collection won’t actually make the Collection active. Collections are only activated in the Outliner by clicking on them… hmm.
I tried a few things but couldn’t get it to work. The farthest I got was figuring out that
bpy.context.object.users_collection[0].name
will give you the name of the Collection that the selected object belongs to. But I don’t know how to implement it via PME or an external script.