See this blog post for more info on why
ftrim()
is cool.
Adds an item to the right-click menu of string parameters, as well as to the
Gear menu of any node. ftrimify
wraps channel references like ch()
and chs()
in ftrim()
, to help round off excess precision in string parameters.
It's common for string parameters to add a bunch of extra digits you don't want.
Say you have a FLIP object with a particle separation of 0.1
. When
referenced in a string parameter like:
`chs("/obj/dopnet1/flipsolver/particlesep")`
it will probably come out to something like
0.10000000000000001
We can help fix it using the HScript expression ftrim()
:
`ftrim(chs("/obj/dopnet1/flipsolver/particlesep"))`
Only string parameters will have this option added to their right-click menu.
Select it to have all ch()
and chs()
channel references wrapped up in
ftrim()
.
If a channel reference is already wrapped up in ftrim()
, it will be skipped so
that you can safely run it again if you update your node/parameter without
adding a bunch of extra ftrim(ftrim(ftrim(ftrim(...))))
s.
This is found in the Gear menu of any node. It runs ftrimify
over each string
parameter on the node.
-
Download the latest release here.
- Optionally, you can clone this repo if you'd like instead.
-
Navigate to your houdini user preferences folder and into the
packages
directory (if thepackages
folder does not exist, create it).$HOUDINI_USER_PREF_DIR/packages
-
Copy the zip archive here and extact its contents.
-
Move (or copy) the
ftrimify.json
file to the parent directory$HOUDINI_USER_PREF_DIR/packages
. -
Launch Houdini
If you prefer not to use Houdini packages for whatever reason, you can manually
copy the files to any Houdini Location ($HSITE
, $HOUDINI_USER_PREF_DIR
) or
anyhwere on your $HOUDINI_PATH
.
ParmMenu.xml
andParmGearMenu.xml
should live at the root. ie. if you're moving these files into your user prefs folder, it should live right inside thehoudini18.5
folder.- Copy the module
wranglegist.py
topython2.7libs
orpython3.7libs
(depending on your Houdini installation version)