Robert Vinluan

rvinluan

About Me

Expertise
Developer
Location
Canada
Website

Connect

Recent Forum Posts

QDoubleSpinBox not consistent with hou.ui.stylesheet April 30, 2018, 5:52 p.m.

Hi Michal,

It's likely that there is no style specified for QDoubleSpinBox in the Houdini Qt style sheet.

Feel free to submit a bug for that issue:
https://www.sidefx.com/bugs/#/create/ [www.sidefx.com]

The workaround is to make a copy of $HFS/houdini/config/Styles/base.qss, paste it into $HOME/houdini16.5/config/Styles/base.qss and then add QDoubleSpinBox styles in the pasted file.

Cheers,
Rob

Python hou.Parm.keyframesBefore output? April 2, 2018, 4:35 p.m.

Hello,

You can ignore the output to console. There was a debug print out that was accidentally left in the code.

I've removed the print out starting in tomorrow's 16.5.431 build.

Cheers,
Rob

Problem with Custom Shelf Tool Python Window March 29, 2018, 3:29 p.m.

Hello,

I think I have run into this issue before. It has to do with the lifespan of Python variables and PySide/shiboken deciding what it owns and what it can delete. It's a long explanation but here are a couple of workarounds you can try.

1) Assign the result of hou.ui.mainQtWindow()to a variable that lives past the lifetime of the shelf tool's Python context. For example:
hou.session.mainWindow = hou.ui.mainQtWindow()
dialog.setParent(hou.session.mainWindow, QtCore.Qt.Windows)

2) Alternatively, don't parent to the main window. Instead assign your dialog to a variable that lives past the lifetime of the shelf tool's Python context. For example:
hou.session.dialog = dialog

I hope this helps.

Cheers,
Rob