FIXED: 2023.11600 Mac Python .findChildren()

Hi
Here is an example how to load non empty COMP that looks empty for .findChildren() function:

toxName = 'button.tox'
button = parent().create('buttonCOMP')
button.save(toxName)
button.destroy()

#THIS MAKES BUG:
buffer = op('/ui').create('baseCOMP')

#THIS WORKS FINE:
#buffer = op('/').create('baseCOMP')

buffer.loadTox(toxName)
ui.panes.current.placeOPs(buffer.findChildren(maxDepth=1),delOP=buffer)

Or use project:
findChildrenBug.toe (3.8 KB)

  1. Run ‘step1’
  2. Place OP
  3. Run ‘step2’ while keeping placed OP as current
  4. See textport

Cheers,
Alex

Thanks for the report, will be fixed in the next official.

1 Like