infinity_spiral

infinity_spiral

About Me

Connect

LOCATION
Not Specified
WEBSITE

Houdini Skills

Availability

Not Specified

Recent Forum Posts

QML in Houdini ? June 3, 2018, 1:31 p.m.

Hi,

Does anyone have an idea how to run QML with PySide2 inside Houdini?

I tried these simple examples and it seems that they don't work.

from hou.session:

from PySide2.QtWidgets import *
from PySide2.QtQuick import QQuickView
from PySide2.QtCore import QUrl, Qt

class MyWidget(QWidget):
    def __init__(self, *args, **kwargs):
        super(MyWidget,self).__init__(*args, **kwargs)
        view = QQuickView()        
        url = QUrl("view.qml")
        view.setSource(url)        
        self.createWindowContainer(view)        
        self.setParent(hou.ui.mainQtWindow(), Qt.Window)

def show():
    foo = MyWidget()
    foo.show()

QML: view.qml

import QtQuick 2.6

Rectangle {
    id: page
    width: 640
    height: 480
    color: "lightgray"

    Text {
        id: helloText
        text: "Hello world!"
        y: 30
        anchors.horizontalCenter: page.horizontalCenter
        anchors.verticalCenter: page.verticalCenter
        font.pointSize: 24; font.bold: true
    }
}

from python panel:

from PySide2.QtWidgets import QWidget
from PySide2.QtQuick import QQuickView
from PySide2.QtCore import QUrl


def onCreateInterface():
    view = QQuickView()
    url = QUrl("view.qml")    

    view.setSource(url)
    widget = QWidget.createWindowContainer(view)
    return widget

Any ideas ?Should I use QtQml.QQmlApplicationEngine somehow ?

"Show Values" equivalent in Houdini? April 9, 2014, 1:55 p.m.

pusat
You would still need different coloring too as well as different ways to visualize values, not just texturally but as vectors, matrices, etc.

+1
And arrays . I won't stop asking for that . Array attribute is something I really miss from ICE and the possibility that opens is really big. In Vex you can work with arrays but you can't assign them as an attribute . There are some tricks, for example converting the array to string but this is not a solution . I guess you will need also better way to show the data from the arrays in the details view once you make them avalible ( I hope will be soon)

One click visual feedback on the viewport from any point of the tree is something really cool in ICE and I miss this in Houdini a lot.Hope SESI will implement it at some point.

Porting ICE nodes to Houdini April 6, 2014, 7:08 p.m.

sekow
just want to add that i feel very comfortable in vop sops.
the closest location functionality was the only thing so far I could not figure out right out of the box.
what could help is to translate popular tasks done inside ice trees into vop sops: reading color values from a second object, modulated by distance for instance


I usually use pcopen and pcfilter it works similar to get closest location and in point wrangle is very easy to setup . Here is example.