Activity
Mon
Wed
Fri
Sun
Dec
Jan
Feb
Mar
Apr
May
Jun
Jul
Aug
Sep
Oct
Nov
What is this?
Less
More

Memberships

CG Python Academy

Public โ€ข 24 โ€ข Free

1 contribution to CG Python Academy
Going over basic interactions with collections
There was some interest in how you would work with collections using Python. Here is some code examples of how you can set the properties connected to a given collection. I explain this code in detail in the attached video. ``` view_layer_collection = dict() for view_col in bpy.context.view_layer.layer_collection.children: view_layer_collection[view_col.name] = view_col view_layer_collection = {view_col.name: view_col for view_col in bpy.context.view_layer.layer_collection.children} view_layer_collection['Collection'].holdout = True view_layer_collection['Collection'].indirect_only = True view_layer_collection['Collection'].exclude = True view_layer_collection['Collection'].hide_viewport = True bpy.data.collections['Collection'].hide_render = True bpy.data.collections['Collection'].hide_select = True bpy.data.collections['Collection'].hide_viewport = True ```
2
4
New comment 5d ago
Going over basic interactions with collections
1 like โ€ข 6d
Yes sir thank you. its confusing where to find those settings
1-1 of 1
Louis Laurents
1
4points to level up
@louis-laurents-2325
Business Owner/3D modeler http://www.basgfx.com

Active 2d ago
Joined Nov 4, 2024
Texas
powered by