Notifications
Clear all

[Closed] Resize Docked DialogBar

Hi,

I’m looking up how to resize a registered dialogbar once it has been already docked and when I tried copy-pasting the sample code from this link (to learn) I get an error:

TypeError: ‘PySide2.QtWidgets.QWidget.find’ called with wrong argument types:
PySide2.QtWidgets.QWidget.find(float)
Supported signatures:
PySide2.QtWidgets.QWidget.find(quintptr)
– MAXScript Rollout Handler Exception:
– Runtime error: TypeError: ‘PySide2.QtWidgets.QWidget.find’ called with wrong argument types:
PySide2.QtWidgets.QWidget.find(float)
Supported signatures:
PySide2.QtWidgets.QWidget.find(quintptr)

– MAXScript callstack:
– thread data: threadID:24184


– [stack level: 0]
– In testRollout.open()
– member of: Rollout:testRollout
– Locals:
– toolbarWidget: undefined
– pySide2: <module ‘PySide2’ from ‘C:\Program Files\Autodesk\3ds Max 2018\python\lib\site-packages\PySide2_init_.pyc’>
– Externals:
– testRollout: Global:testRollout : Rollout:testRollout
– owner: Rollout:testRollout


– [stack level: 1]
– called from top-level

(I’m using 3dsmax 2018).

1 Reply

I tested the exact same code in Max2020 and it works, its just in 2018 I cant get it to work.
image