Announcements
Attention for Customers without Multi-Factor Authentication or Single Sign-On - OTP Verification rolls out April 2025. Read all about it here.

How to query if the docked channelbox is in focus?

malcolm_341
Collaborator

How to query if the docked channelbox is in focus?

malcolm_341
Collaborator
Collaborator

Hi, I'm trying to toggle between the outliner and the channel box, they are both docked so I need to know what the name of the channel box is. I've tried mainChannelBox and channelBox and everything else I can think, but I can't figure out how to query this workspaceControl. Any ideas?

0 Likes
Reply
Accepted solutions (1)
81 Views
1 Reply
Reply (1)

malcolm_341
Collaborator
Collaborator
Accepted solution

I think I figured it out, after much trial and error I realised I can get name of the channel box tab by using this command.

channelBox -q -fullPathName mainChannelBox

Which told me the name is ChannelBoxLayerEditor and I can then use the below command to return 0 or 1 to tell if it's in focus.

 

workspaceControl -q -raise ChannelBoxLayerEditor

0 Likes