朵x格 dolag

dolag233

About Me

Connect

LOCATION
Not Specified
ウェブサイト

Houdini Skills

Availability

Not Specified

Recent Forum Posts

How to Rotate the Viewport Camera About Itself in Python? 2024年1月28日9:28

I'm trying to understand how to rotate the default viewport camera about it's own pivot.
I understand the 'translation' and 'rotation' parameters of the hou.GeometryViewport object, but I'm confused about the 'pivot' parameter. Specifically, I want to rotate the camera around its own pivot without changing its translation position. Can anyone explain what the 'pivot' represents and how I could achieve a rotation about itself? Thanks for any reply.

Hide close button in PySide2 2022年5月27日22:45

Ok I got it, it is because I have set parent to mainQtWindow. So simply do not set parent.

Hide close button in PySide2 2022年5月27日5:38

Hi guys,

I'm trying to create a window with PySide2 and now I have created a window, but I can't get rig of the close button and maximize&minimize button even after setting the PySide2.QtCore.Qt.FramelessWindowHint windowf flag like below:
        self.setWindowFlags(self.windowFlags() | QtCore.Qt.FramelessWindowHint)

So my question is: how to remove the close and maximize&minimize buttons.

Thanks