Skip to content

Instantly share code, notes, and snippets.

View FridayMarch26th's full-sized avatar

Nick Wood FridayMarch26th

View GitHub Profile
@FridayMarch26th
FridayMarch26th / easings.h
Last active May 5, 2021 22:40
VEX port of easings.net
#ifndef __easing_h
#define __easing_h
/*
* A straightforward port of the great easing function summary at https://easings.net/
* Original lib by Andrey Sitnik (Twitter: @sitnikcode) and Ivan Solovev (Twitter: @gosolivs)
*
* To install place this file inside $HOME/HoudiniX.X.XXX/vex/include/
* ($HIP/vex/include and $HFS/vex/include are also possible)
*
@FridayMarch26th
FridayMarch26th / extract_node.txt
Last active August 14, 2021 19:48
Houdini - Extract selected node into its own network via an Object Merge
#Bung this in a shelf tool.
#Map it to a hotkey for bonus points.
#Drop me a line if anything needs fixing. :)
import re
obj = hou.node("/obj")
selectedNodes = hou.selectedNodes()
networkEditor = hou.ui.paneTabOfType(hou.paneTabType.NetworkEditor)
#Don't do anything if nothing's selected