How to get the width of the trackbar.

I need to make a basic addon to the trackbar, similar to the "Timeline Addon" script, but I need to get the viewports widths , the trackbar width or get the number of columns of the command panel.

Ive found those codes...
getViewSize()
gw.getWinSizeX()
gw.getWinSizeY()

I think that i can maximize the active viewport, and get the width with gw.getWinSizeX(), but needs revert the operation, and it may be slow and annoying, especially when you resize the main window.

Any idea?

Comments

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
br0t's picture

I'd like to know that as well

I'd like to know that as well

Never get low & slow & out of ideas

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.