Skip to main content

All Questions

3 votes
2 answers
345 views

How can I fully select a collection using python with blue highlight?

I have found this thread and several other threads but nothing with any legit answers. We can somewhat select a collection using for example this script that "selects" the one at index 2: <...
Harry McKenzie's user avatar
  • 13.2k
2 votes
1 answer
59 views

msgbus for collection selection in outliner

I want a callback for Collection selections in the Outliner. So far I already found a common solution for object selections: ...
rbx 775's user avatar
  • 67
2 votes
1 answer
266 views

How can I get all selected collections in the Outliner?

In 2022 there was an answer to a question over at devtalk.blender.org about selecting multiple collections. The answer was this code segment: ...
Steve's user avatar
  • 460
1 vote
1 answer
3k views

How can I count objects that are in a collection instance using Python?

I have this script which should count all the selected objects in the scene, but it doesn't. It cannot count the 6 monkeys that are part of a collection instance. Can you help me? ...
daniele's user avatar
  • 81
0 votes
1 answer
565 views

How to sort objects from a collection using python?

So I'm trying to animate a rubiks cube via a python script using the scripting capabilities given with Blender. My current cube looks like this: It consists of 27 separate objects (cubelets) that ...
Jakob Runge's user avatar
1 vote
1 answer
2k views

How to select objects by collection from selected objects in the scene with Python?

I just started using python and got stuck. I found this script which is used to take the selected objects from the scene and add them to a list based on the name of the material. I should do almost ...
daniele's user avatar
  • 81