Invoke from existing operator

Hi guys,

I wondering if it’s possible to launch an existing operator with an invoke on a property ?
I’m trying to create an operator with the invoke on an existing addon that I can’t edit.
I would like to call offset edges and directly change the width with the mouse move.

If I call the tool via a new operator, I loose the options of this tool, I don’t have acces to them, so I try to call it directly in one operator.

I tryed this kind of code, but it doesn’t work.

bpy.ops.mesh.offset_edges(geometry_mode=‘move’, caches_valid=False, width = ‘INVOKE_DEFAULT’)

Do you have an ideao on how do this, if it’s even possible ?

Thx for your help !

salut,
essaies de passer par un override, style :

override={‘width’: objectname.offset_edges["‘INVOKE_DEFAULT"]}
bpy.ops.mesh.offset_edges(geometry_mode=‘move’, caches_valid=False,override’)

il n’y a pas d’espace après ‘width’: mais j’ai du en rajouter pour ne pas que ça fasse un smiley !?
je n’ai pas la syntaxe exacte, mais j’espère que ça peut t’être utile.

Non marche pas, pas sur que ce soit faisable en fait comme le fait de ne pouvoir avoir acces au redo.last si on lance un operator depuis une classe.

have you tried to return the output from the called operator in your operator?


    def execute(self, context):
        return bpy.ops.mesh.offset_edges('INVOKE_DEFAULT')