def poll(cls, context): return MMDLamp.isLamp(context.active_object)
def poll(cls, context): obj = context.active_object return obj and (MMDLamp.isLamp(obj) or MMDLamp.isMMDLamp(obj))