2025.30960 Creating COMPs with python

Hi, here is an example on
2025.30690 Windows 10

b = op('/').create('baseCOMP')
cOp = b.create('buttonCOMP')
ui.panes.current.placeOPs([cOp])

As a result - buttonCOMP panel is not working + ‘layout dependency loop detected’ warning.

Best,
Alex

Noticed that triggering panel visibility + forcing cook solves it
For example, this works fine:

b = op('/').create('containerCOMP')
b.openViewer()
cOp = b.create('buttonCOMP')
b.cook(force = True, recurse = True)
b.closeViewer()
ui.panes.current.placeOPs([cOp])

Hi @letsius,

thanks for reporting this, we are having a look

cheers
Markus

1 Like

2025.31760
I’ve noticed if even run the following from default project (from /project1/):

cOp = op('/').create('sliderCOMP')
cOp.openViewer()
cOp.cook(force = True, recurse = True)
cOp.closeViewer()
ui.panes.current.placeOPs([cOp])

Result - sliderCOMP panel is not updating on mouse events unless cut+paste sliderCOMP.

Also if you run:

cOp = op('/').create('sliderCOMP')
ui.panes.current.placeOPs([cOp])

The original bug is still - loop dependency error and broken panel.

Best,
Alex

1 Like

Hi @letsius

thanks for this additional info, the bug is still under review.

cheers
Markus

1 Like

Hi @letsius

this will be fixed in an upcoming release 2025.32119+

cheers
Markus

1 Like