Post #2847: ![](https://blenderartists.org/user_avatar/blenderartists.org/roaoao/48/37600_2.

📋 Metadata

🏷️ Tags

macro hotkeys advanced unsolved

  • Macro Editor
  • Python Scripting
  • Hotkey Configuration

💬 Content

roaoao:

Set Offset From Cursor operator requires a collection .

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.


🔗 View on Blender Artists