No active panels found for component

HI all,
I’m hoping I’m just overlooking something simple here.
I have a number of scripts in my project that interact with panel buttons using:
op(‘/ballSculpture/centerPos’).interactMouse(0.5, 0.5, leftClick=1)

They are returning a “No active panels found for component” error. I’ve also tried running that command from the terminal with the same result.
But! Toggling the Viewer Active button off and back on again fixes it.

Is this a bug (I’m still in R088 build 62960)? Or am I not using the preferred interaction? There’s a lot of ways to skin this cat and I’m happy to try a different method.

Thanks!

Following.

I have encounter this exact problem and solution in 099 build 2017.14620

:nerd:

still happenig in 2018.27840… have to stick to this version…
any workaround?
thank you

Oh that old chestnut!
Yeah I never figured out that bug, but these days I figure that simulating mouse clicks is a bit hacky anyway.

Much cleaner to go for python if your situation allows it,

button.panel.state = val

I forget what integers map to which states but it’s pretty straightforward.

Good luck!