📋 Metadata

💬 Content

fjg3d:

I think that’s the command to change visible layers? I’m referring to the ‘object.move_to_layer’ panel that pops up when you press ‘m’ key (to move objects to different layers).

It should move the last selected object to the selected layer(s). If you want to move all selected objects you have to use ‘M’ command.

You can change visible layers with this code for popup dialogs (Custom tab):

L.prop(C.scene, "layers", "")

Or this for pie menus (Custom tab):

L.box().prop(C.scene, "layers", "")

🔗 View on Blender Artists