Jump to content

Simple hotkey - hide display of node?


cwalrus

Recommended Posts

Hi guys-

 

just trying to find a hotkey to hide the visibilty of selected objects, ie. clicking the blue square on the right of the node.

I went to the hotkey editor and found "hide selected" but it does something differnent.

 

Is there a way, as in Maya, that you can see the 'script' or code for whatever command you press? Then of course assigning a hotkey would be easier....

 

On that note, where are the display flags listed, other than the representation by the blue toggle button?

 

Thanks people

Edited by cwalrus
Link to comment
Share on other sites

Is there a way, as in Maya, that you can see the 'script' or code for whatever command you press? Then of course assigning a hotkey would be easier....

 

the ui in maya is built ontop of the mel code, so the whole "script from a button press" thing is part of the intrinsic way it works.  houdini's ui is not done that way, so there's not necessarily a script equivalent for your clicks.  i wish the ui was built from something accessible (like python) so it'd be easier to hack into, but alas, it is not.

Link to comment
Share on other sites

Re codey discovery, here's what I did, that indirectly led to finding the hotkey was 1:

 

  • dragged a geo node into the python shell
  • went to the start of the line, prefixed n =, so i had a variable like this: n = hou.node('/obj/geo1')
  • hit enter, so now 'n' is assigned as that node
  • dir(n) <enter>, displays all callable functions on that node. have a browse.
  • spot likely contender, setDisplayFlag
  • try it out:  n.setDisplayFlag(0)  <enter>, works
  • go to hotkey editor, search for display, find its already assigned as hotkey 1.
  • post here

 

Strangely, I had accidentally discovered this in sops and use it all the time, didn't know it worked in the /obj context. My nuke muscle memory always kicks in, and I hit '1' like I do in nuke to attach a node to the viewer, to my joy houdini does the same thing. '2' sets the render flag, so its very quick to jump around the network setting render and display flags separately.

 

Also easy to forget, curse houdini for 5 minutes that its rendering the wrong thing, only to realise its rendering some other node, exactly as you told it to.

Edited by mestela
Link to comment
Share on other sites

  • 2 years later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...