When you use
UILayout().operator(), it returns an
OperatorProperties() object to which you can assign default properties with which to invoke the operator.
def draw(self, context): op = self.layout.operator('object.some_operator') op.setting = 5 op.value = "Seven"
Is it possible to access these settings from the
.poll() method of the operator, to selectively grey out operator buttons depending on settings?