Hi,
Is there a way I can move a specific node based on the mouse/cursor’s positions?
I tried the setPosition
or the move
method but it doesn’t work. It also doesn’t error out.
Here’s my code so far:
new_node = con.createNode(node_name)
pos = QtGui.QCursor.pos()
new_pos = hou.Vector2(values=(pox.x(), pox.x()))
new_node.setPosition(new_pos)
new_node.move(new_pos)
May I ask what am I missing?