Philipp von Preuschen

CYTE

About Me

Expertise
Freelancer
Location
Germany

Connect

Recent Forum Posts

Auto select node when checking display flag Sept. 28, 2022, 2:59 a.m.

Hey LukeP,

I only have this snippet to set the display flag on the selected node. so you can put that to a shortcut.
# put all currently selected nodes in a tuple
allnodes = hou.selectedNodes()
if len(allnodes) == 0:
    hou.ui.displayMessage('Please select Nodes')
else:
#find last node Position of selected nodes
    lastNodePosition = len(allnodes)-1
# select last node
    lastnode = allnodes[lastNodePosition]
# set display/render/selection flag on node
lastnode.setDisplayFlag (True)
lastnode.setRenderFlag (True)
lastnode.setSelected(1,1)

But I barely use it as I work with this all the time: Hotkey System [animatrixx.gumroad.com]
It's money well spent. As it will speed up your Houdini workflow a lot. It provides a function to select and display the node that is nearest to the mouse. so you don't even have to be over the node, just near it.

Cheers
CYTE

adjust default frame rate Sept. 27, 2022, 6:36 a.m.

hm, strange, it works for me. make sure to press apply FPS and then Save as default.

Cheers
CYTE

Get the corner position of a diagonal line Sept. 26, 2022, 3:15 a.m.

it's pretty simple:
you take your line and mark its middle point.
from there it's the same distance to the unknown point as to one of the known ones (length a).
So you get your unknown point by going tangentially starting at the middle point by length a.

Cheers
CYTE