Blender Python Hide Collection
Blender artists is an online creative forum that is dedicated to the growth and education of the 3d software blender.
Blender python hide collection. Blender artists is an online creative forum that is dedicated to the growth and education of the 3d software blender. Let s create a simple scene with three objects in their own collection. This is for objects not for collections. I did found the operator in the build but since i know little of c i can t make out if it uses a function that has a python function.
Do not run this on a scene with more than 100 objects. However using the blender python api we can control the visibility of such objects. Please see what i mean. Scene and object api view layer collection.
In practice there can be lots of meshes in one collection which allows managing the visibility of all them through the single collection. As pappy mentioned h to hide and alt h to reveal hidden works for both selected objects and selected vertices. To hide everything except the selected object use shift h. It will be a waste of time.
Alt b again toggles it off. 2 8x collections replace both groups and the fixed twenty scene s layers of 2 7x. You can also use alt b to draw a box around what you want to look at. There is a lack of a robust api for doing that imho.
You can hide collections per view layer inthe outliner but not via python i ve also mentioned it here along with show expanded. I m working with blender s beta 2 80 and have faced couple of issues trying the hide and show collection from python. Hello i d like to know if an object is hidden with h alt h or not then make all objects visible do some stuff and then hide them again. Regarding collections now that i am using blender 2 8 it would make sense that when creating a new collection it receive a mapping number automatically like it is now and then either we can customize the original number for sub collections like 1 1 or 1 xxx following the workflow or we can let the system automatically create sub classification like it is now 1 1 11 1 111 1 112 etc.
That means that objects belonging to a collection can both be instantiated from another empty object on particles etc and organized as regular objects in a scene when their collection is linked into the scene s hierarchy of collections.