Notifications
Clear all

[Closed] Maxscript access to Sub-Object in motion panel

**

Unknown property: “QWIdget” in <module ‘PySide2.QtWidgets’

**
on this row —-> app = qt.QWIdget.find (pymxs.runtime.windows.getMAXHWND())
i dont know python((

hwnd_get = GetCommandPanelHWND()
dialog = windows.getChildrenHWND hwnd_get
UIAccessor.PressButton dialog[n][1]; print dialog[n][1]

i was try to bruteforce try click all ui elements. one by one. but also no result(

qws = python.import "PySide2.QtWidgets"
app = qws.QWidget.find (getMaxHWND())
cp = (app.findChildren qwidgets.QWidget "CommandPanel")[0]
bts = cp.findChildren qws.QPushButton

--bts[1].text()
bts[1].click()

work for sure in MAX 2020

thanks, it was lowercase i character in QWIdgets word

Thnx so much!!! python method works perfect!!!

1 Reply
(@denist)
Joined: 10 months ago

Posts: 0

it’s Qt now… the WinAPI (uiaccessor) methods don’t work anymore for this part of UI

I have poor knowlege in UI at all. so for me that was totally mind blowing)

This is bad… You have to!

Every tech artist needs to do three things in “life”:

  • Develop a geometry plugin
  • Design a rig
  • Write a shader

… and three things as 2D tech artist:

  • Make your own font
  • Create an icon pack
  • Design your own LOGO

So much work to be done))

I did only a couple of paid projects for all my scripting career. Tech Artist vacancies require too many skills that I wasn’t ever interested so I never happened to have a job in this field. It is just a hobby for many years already. Just like fishing…

Page 2 / 2