2
$\begingroup$

How do I setup the poll method for a panel causing it to only display when 2 objects are selected ?

$\endgroup$

1 Answer 1

8
$\begingroup$
    @classmethod
    def poll(cls, context):
        return len(context.selected_objects) == 2
$\endgroup$

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .