朵x格 dolag

dolag233

About Me

Connect

LOCATION
Not Specified
WEBSITE

Houdini Skills

Availability

Not Specified

Recent Forum Posts

How to Rotate the Viewport Camera About Itself in Python? Jan. 28, 2024, 9:28 a.m.

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 May 27, 2022, 10:45 p.m.

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

Hide close button in PySide2 May 27, 2022, 5:38 a.m.

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