Select polygonal edges, run:
def run(): listEdges = pm.ls(sl = 1, flatten=True) pm.polyDuplicateEdge(listEdges, splitType=0, offset=0.1) run()
And get the error: # Error: line 1: RuntimeError: file C:\pmcmds.py line 133: Undo is temporarily unavailable. Try exiting the current tool.
While if you press CTR + Z in a viewport it will undo properly. What I am doing wrong?
I need to undo my script cos I wish to make it interactive, so the user can adjust parameters with a HUD slider (offset for example). Each time user release slider I undo the previous execution and run again with a new value.