Post #4532: for myCol in bpy.data.collections:

πŸ“‹ Metadata

  • Author: lee_blues
  • Date: 2022-09-11 05:34:36
  • Type: question
  • Quality Score: 4/10

🏷️ Tags

macro hotkeys beginner unsolved

  • Macro Editor
  • Python Scripting

πŸ’¬ Content

for myCol in bpy.data.collections: if myCol.name == β€œ2LightCG_0F0”: bpy.data.collections[β€œ1LightCG”].hide_viewport = True bpy.data.collections[β€œ2LightCG_0F0”].hide_viewport = True

i want write above code in command tab. how to write.


πŸ”— View on Blender Artists