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 |
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", "class") | |
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
import hou | |
mode_name = hou.updateModeSetting().name() | |
mode = hou.updateMode.Manual if mode_name == "AutoUpdate" else hou.updateMode.AutoUpdate | |
hou.setUpdateMode(mode) |
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 off_templateflags(current): | |
for child in current.children(): | |
node = hou.node(child.path()) | |
if "setTemplateFlag" in dir(node): | |
node.setTemplateFlag(False) | |
def main(): | |
editor = hou.ui.paneTabOfType(hou.paneTabType.NetworkEditor) | |
current_node = editor.pwd() |
NewerOlder