Post #4755: [switch_collection_visibility.py](</uploads/short-url/c1Dy4wobLSDpIaOe6NNd2MCaP2

📋 Metadata

  • Author: Pluglug
  • Date: 2023-06-16 14:35:44
  • Type: answer
  • Quality Score: 8/10
  • Reply to: post_04753

🏷️ Tags

macro scripting intermediate solved

  • Macro Editor
  • Python Scripting
  • Command Tab
  • Property Editor

💬 Content

switch_collection_visibility.py (1.5 KB)
Put this file in pie_menu_editor\scripts\autorun. Then restart Blender. (Restart your PC if necessary)
Type switch_collection_visibility('1head,2head,3head') in the command tab of PME and execute it.

Display multiple collections in sequence. I want you to know that doing it this way is very convenient.

If you want to use it more conveniently, create a PME Property and save the String Property to scene. Then write switch_collection_visibility(bpy.data.scenes[0].MyStringProperty) in the command tab.

You can always change the collections you want to display by adding the properties you created to the menu of your choice.


❤️ 3 likes


🔗 View on Blender Artists