2025.31760 python placeOPs() + undo -> TD freezes forever

Hi!
Here is an example:

pOp = parent().create('baseCOMP')
cOp = pOp.create('noiseTOP')
ui.panes.current.placeOPs([cOp],delOP=pOp)
  1. Run this script 2x times,
  2. Make undo 2x times
  3. Select base1 + base2
  4. Hit delete
  5. TD freezes forever

Guess the problem is delOp is not included in undo chain, as the following script has no such issues:

ui.undo.startBlock('test')
pOp = parent().create('baseCOMP')
cOp = pOp.create('noiseTOP')
ui.undo.endBlock()
ui.panes.current.placeOPs([cOp],delOP=pOp)

Or maybe it is good idea to not include placeOPs() in undo by default?

Best,
Alex

Hi @letsius,

thank you for reporting this issue, can replicate and logged as a bug.

cheers
Markus

1 Like