I have a custom operator called collection.vary_collection
that has an IntProperty
called color_step
. I managed to create a UI button calling the operator and I would like to add a slider that changes that property but I don't know what is the proper way to do that. So far I have just a slider but it doesn't respond :
This is my draw function :
def draw(self, context):
props= self.layout.operator(
'collection.vary_collection',
text= 'Make Variants',
icon= 'OUTLINER_OB_GROUP_INSTANCE'
);
self.layout.prop(props, 'color_step');
Can anyone help me with that or at least link me to some similar working examples?