1
$\begingroup$

How can I create a Boolean variable that is true when all objects in the scene are selected?

$\endgroup$
1
$\begingroup$
len(bpy.context.scene.objects) == len(bpy.context.selected_objects)
$\endgroup$
2
  • 2
    $\begingroup$ Well, nice answer, even if a bit non-verbose :P Can you please add some details? $\endgroup$
    – Polosson
    Jan 27 '16 at 21:25
  • $\begingroup$ Based strictly on looking at the names I'm going to guess that bpy.context.scene.objects is the list of objects in the scene, and bpy.context.selected_objects is the list of selected objects. $\endgroup$
    – Mutant Bob
    Jan 28 '16 at 15:23

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.