Skip to main content

All Questions

Tagged with
3 votes
3 answers
339 views

Blender Python: How to test for "selectable" objects in viewport?

Is there a way to check if objects are selectable in Blender Python? The code below checks if an object is visible, but is there also something to check if an object is also selectable in viewport? ...
Christoph Werner's user avatar
0 votes
1 answer
36 views

Joining & Rotating objects created in code through loop

I'm a Blender & Python newb, so the nuances haven't been all that enjoyable :) I'm trying to create a 1x2 stack of cubes that joins and rotates each layer by 45 degrees. Below is the code I have, ...
Mantis Head's user avatar
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