This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /* 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; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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 | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import difflib | |
| import hou | |
| # Houdini に同梱の PySide を使う(PySide2 or PySide6) | |
| try: | |
| from PySide6 import QtCore, QtGui, QtWidgets | |
| except ImportError: | |
| from PySide2 import QtCore, QtGui, QtWidgets |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import soptoolutils | |
| # この行で自分自身を生成しているため、ここをコメントアウトして自身のノード生成をキャンセルする | |
| # soptoolutils.genericTool(kwargs, '$HDA_NAME') | |
| # Create Null | |
| origin = soptoolutils.genericTool(kwargs, 'null', nodename='SET_DIR') | |
| # Create scatter | |
| scatter = soptoolutils.genericTool(kwargs, 'scatter') |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #! python3 | |
| # -*- coding: utf-8 -*- | |
| import math | |
| import pyperclip | |
| import unicodedata | |
| import sys | |
| def len_count(text): |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| node = hou.pwd() | |
| geo = node.geometry() | |
| for p in node.parms(): | |
| try: | |
| if p.name() != "python": | |
| p.revertToDefaults() | |
| except: | |
| pass |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| def main(kwargs): | |
| node = kwargs["node"] | |
| node.setUserData("descriptiveparm", "bindclass") | |
| main(kwargs) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| from pathlib import Path | |
| import webbrowser | |
| p = Path(hou.getenv("HIP")) | |
| webbrowser.open(p.absolute()) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| "-------Preferences--------" | |
| set ttyfast | |
| set t_Co=256 | |
| set hidden | |
| set autoread | |
| set history=2000 | |
| set noswapfile | |
| set backspace=start,eol,indent | |
| set ambiwidth=double | |
| set shortmess+=I |
NewerOlder