Skip to content

Instantly share code, notes, and snippets.

@kickbase
kickbase / Remove-BackupFolders.ps1
Created August 2, 2026 02:14
[Houdini] Remove all "backup" folders under RootPath
# Remove all "backup" folders under RootPath (ASCII only - no encoding issues)
$RootPath = $PSScriptRoot
try {
if (-not (Test-Path -Path $RootPath -PathType Container)) {
Write-Host "Error: Path not found. [$RootPath]" -ForegroundColor Red
exit 1
}
$backups = @(Get-ChildItem -Path $RootPath -Recurse -Directory -Filter "backup" -ErrorAction SilentlyContinue)
@kickbase
kickbase / nodegraphhooks.py
Created July 28, 2026 06:52
[Houdini] [Python] Network editor hook for background drag move
"""Network Editor: hold M and drag the background to move selected nodes.
Install by copying (or linking) this file to:
$HOUDINI_USER_PREF_DIR/python3.11libs/nodegraphhooks.py
Restart Houdini (or open a new Network Editor pane) after installing.
"""
from __future__ import annotations
@kickbase
kickbase / keymap.json
Created July 14, 2026 01:09
[ Zed ] ~\AppData\Roaming\Zed\keymap.json
[
// ============================================================
// Vim Normal / Visual(VimControl)
// ============================================================
{
"context": "VimControl && !menu",
"bindings": {
// set whichwrap(h/l/space/backspace のみ Zed 公式対応)
"h": "vim::WrappingLeft",
"left": "vim::WrappingLeft",
@kickbase
kickbase / setting.json
Created July 14, 2026 01:03
[ Zed ] ~\AppData\Roaming\Zed\settings.json
// Zed settings
//
// For information on how to configure Zed, see the Zed
// documentation: https://zed.dev/docs/configuring-zed
//
// To see all of Zed's default settings without changing your
// custom settings, run `zed: open default settings` from the
// command palette (cmd-shift-p / ctrl-shift-p)
{
"project_panel": {
@kickbase
kickbase / OPmenu.xml
Last active June 16, 2026 14:42
[Houdini] [Python] Customize menus
<?xml version="1.0" encoding="UTF-8"?>
<menuDocument>
<menu>
<separatorItem/>
<scriptItem id="h.pane.wsheet.reset_node_color">
<label>Reset color to default</label>
<scriptCode><![CDATA[
import hou
@kickbase
kickbase / reset_color.py
Created June 10, 2026 08:13
[Houdini] [Python] Shelf tool to reset selected nodes to their default color
import hou
with hou.undos.group("Reset colors to default"):
for node in hou.selectedNodes():
node.setGenericFlag(hou.nodeFlag.ColorDefault, True)
@kickbase
kickbase / markdown-preview-light.css
Created March 16, 2026 23:21
[ VSCode ] Apply light mode to Markdown previews only.
/* Markdown プレビューを常にライト表示(エディタはダークのまま) */
body.vscode-dark,
body.vscode-light {
background-color: #ffffff !important;
color: #24292e !important;
}
body.vscode-dark pre,
body.vscode-dark code {
background-color: #f6f8fa !important;
@kickbase
kickbase / PowerShell_profile.ps1
Created March 16, 2026 12:42
[ PowerShell ] [ Houdini ] Recursively delete backup folders. If no argument is provided, the current directory will be targeted.
function rm_bu {
param(
[string]$Path = "."
)
Get-ChildItem -Path $Path -Recurse -Directory -Filter "backup" |
Remove-Item -Recurse -Force
Write-Host "[$(Resolve-Path $Path)] 以下の backup フォルダを削除しました。" -ForegroundColor Green
}
@kickbase
kickbase / add_old_node.py
Last active May 18, 2026 23:15
[Houdini] [Python] Shelf tool for searching and adding hidden and deprecated nodes in the current context
import difflib
import hou
# Houdini に同梱の PySide を使う(PySide2 or PySide6)
try:
from PySide6 import QtCore, QtGui, QtWidgets
except ImportError:
from PySide2 import QtCore, QtGui, QtWidgets
@kickbase
kickbase / direction_to_one_point.py
Created December 3, 2022 07:15
[ Houdini ][ Python] Create unencapsulated HDA
import soptoolutils
# この行で自分自身を生成しているため、ここをコメントアウトして自身のノード生成をキャンセルする
# soptoolutils.genericTool(kwargs, '$HDA_NAME')
# Create Null
origin = soptoolutils.genericTool(kwargs, 'null', nodename='SET_DIR')
# Create scatter
scatter = soptoolutils.genericTool(kwargs, 'scatter')