📋 Metadata

💬 Content

C.active_object.select_get( select_get() Object.select_get(view_layer=None) Test if the object is selected. The selection state is per view layer >>> C.active_object.select_get() False

You can check the selection status of the object with the select_get() function.

ao = C.active_object; return ao and ao.type == 'GPENCIL' and ao.select_get()

Try this.


🔗 View on Blender Artists