Difference between revisions of "HoudiniUserInterfaceTips"
|Line 8:||Line 8:|
== misc ==
== misc ==
Revision as of 04:32, 11 May 2019
hda otl asset stuff
All relevant info here: http://www.sidefx.com/docs/houdini/ref/windows/optype#access_contents
Referring to extra images in help markup syntax
mplay for comparing sequences
I must admit I don't use mplay much these days, we have RV at work, and if I need robust playback elsewhere I'd probably use DJV, nice open source tool. Still, its handy to know that mplay can do more playback tricks than people expect. I vaguely recalled it could compare sequences, but before I could work it out, JeffLMnT from the discord chat explained it all, here's a summary:
- After you load your first flipbook, go to view>layout and choose any number of columns or rows. In the same spot uncheck "hide blank viewports"
- Click the blank viewport that pops up, you'll see a green highlight move to the new viewport
- Click the New Sequence button (or menu render>new sequence) and do another flipbook, you should have two flipbooks side by side
- You can do this for up to 17 renders, perfect when wedging sims and comparing them
Wiping between them is quite easy, every flipbook names the caches with ip_<timestamp>, all you need to do is click the new sequence button and render a new flipbook. If you look in the image menu you can see the flipbook being listed with the time stamps. In the same menu there is a compare images tickbox, that should activate the compare dialog. The little tool left of the slider lets you switch between different wipes, and even ask mplay to highlight differences.
Houdini's right click menus can be customised through xml files dropped in your houdini preferences folder. Matt Ebb a while ago shared this rather neat trick to auto create channels in wrangles, which after he wrote it up became a feature sidefx added as standard.
Someone mentioned it'd be handy to have the create-channels button also set default values. Armed with Matt's example and the handy menurefresh texport command, I got a rough proof of concept going.
The functionality itself is done using houdini's python module, which means its pretty easy to pull apart and learn if you know a bit of python already. Here's me copying Matt's PARMmenu.xml file locally, and replacing his code with this:
1import re 2parm = kwargs['parms'] 3 4n = parm.node() 5snippet = parm.unexpandedString() 6 7for l in snippet.split('\n'): 8 r = re.findall('chf.+$',l) 9 if r: 10 r = r 11 p,default = r.split('//') 12 p = re.findall("chf\(\"(\w+)\"", l) 13 default = float(default.strip()) 14 t = hou.FloatParmTemplate(p, p.title(), 1,default_value=([default])) 15 n.addSpareParmTuple(t)
What's going on? Glad you asked:
- import the regex module
- get the reference to the parameter that was right clicked
- derive the node name from the parm
- get the vex wrangle code from the parm
- for each line in the vex wrangle code:
- find 'chf(' in the line, copy from there until the end of the line
- if that text search worked:
- get the first element (re.findall always returns a list of results rather than a single string)
- split that result on the // bit, so we get the chf call stored as 'p', and the stuff after the // as 'default'
- take the chf bit, find the word inside the double quotes, so chf("foo") becomes 'foo'
- take the comment, strip out any whitespace, and convert to a float
- make a new parameter template using the name we extracted and default value we extracted (note that the default value has to be an array in a tuple, weird)
- add that parameter to the node
This is a super rough proof of concept (it only works with chf, only support double quotes), but its interesting. Go do more things with this!
the 9 group list hotkey (aka the joy of se(le)ct(ion))
That grid of points has a @cluster attribute, a random attrib called @noise, and some @path string attributes.
- Hit the 9 hotkey, you see a list of groups (make sure you're in the appropriate selection mode, so 2 hotkey for points, 3 for edges, 4 for prims)
- Select an entry in the list
- While your mouse is in the viewport, tab in a blast node. It will be created, and the group field will be filled out
- remove the blast, back to the viewport, this time go down to attributes. Here I select the cluster attrib which I made earlier
- can see the cluster listed and colour coded. You can hover over the list to see them highlighted, or hover over a point, and all points with the same cluster attrib will highlight
- put down a blast node, this time the group field will be pre filled out with the attrib syntax; @cluster=3
- remove blast again, this time shift select nodes in the viewport, blast node, it'll be filled out with the multiple cluster attribs
- remove blast, switch to displaying the path attrib
- blast again, there it is. super handy for material assignments!
d hotkey is context sensitive
d hotkey will hide the display options too
all the time i was closing the window manually like a chump. just hit 'd' again, it'll go away.
This now works as expected in H16, it's pretty sweet.
viewport got doubled up geo? try making a new scene view
- shift-w in the viewport to toggle wireframe overlay
- w in the viewport to toggle solid/wire
- shift-w in network view to open outliner
- p in the network view toggles the parameters in the corner
- alt-p toggles the timeline to swap between panes
- alt-shift-p pops open a python prompt
- ctrl-p in the viewport creates a sticky note
visually adjust pivot of transform sop
The pivot for a transform is normally at the origin; you can tap the insert key to move the pivot (its the same as keying in values for the pivot channels, but all visual n stuff)
1 and 2 to update display and render flags
Hitting 1 repeatedly cycles between the selected node and the last created node, handy for doing a quick comparisons (analogous to nuke and setting 1 to a node, 2 to another, and tapping 1 2 1 2 to compare them)
In H16 these 1 and 2 hotkeys have been replaced with R and E.
colour correction toolbar in viewport
understanding viewport selection and point display
- s hotkey in viewport enables selection mode
- another shortcut to swap to persp/top/front/right is to hold down spacebar and press 1/2/3/4.
the frustration of seeing blue points when you don't want them, or not seeing them when you do, drove me crazy for the first week or so. Keep an eye on the toolbar, all makes more sense.
Always have this open. ALWAYS. It should be a force of habit to see what attributes are on your geometry, otherwise you're flying blind.
The view dropdown menu on the geo spreadsheet is handy; put it into 'only show selected', then choose some points, its much easier to inspect data, get their point numbers and so forth.
If you have lots of point attributes, use the view menu, 'hide all attributes', then just enable the ones you want.
You can also use the attributes filter (the text entro to the right of the view menu. Eg, make it *id to only show attribs ending in 'id'. If you have lots of groups, you can hide them in the geo spreadsheet by using ^group* in the attributes filter.
You can sort by any column by clicking its title.
precise editing of keyframes in the animation editor
Say you want to move a lot of keys 10 frames later. Select them all in the animation editor, and in the 'frame' field at the bottom, type +10. This also works for the value field too. Explained in more detail here:
It's nearly impossible to use Houdini without a middle mouse button. If you're a lazy slob like me who likes to mess around with houdini on a laptop while on the couch, this presents a problem.
My solution has been to map a key I rarely use to be a middle mouse button. On a Mac I use the right clover-key, on Windows I map the context menu key (the one between alt and ctrl on the right of the spacebar).
- Karabiner lets you do this on OSX: https://pqrs.org/osx/karabiner/ (once its running, search for 'command middle', and enable 'Command_R to MiddleClick'
- Autohotkey lets you do this on windows: https://autohotkey.com/ I have a .ahk file in my startup folder with the mapping "AppsKey::MButton", or on my G73 its "RAlt::MButton"