This file contains 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
{ | |
"version": "2.0.0", | |
"tasks": [ | |
{ | |
"label": "Run", | |
"command": "/usr/local/bin/processing-java", | |
"type": "process", | |
"args": [ | |
"--force", | |
"--sketch=${workspaceFolder}/${relativeFileDirname}", |
This file contains 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 tkinter | |
from tkinter import messagebox | |
def button_click(): | |
input_value = input_box.get() | |
hou.node('/obj/WORK/').createNode('box', input_value) | |
root.destroy() | |
root = tkinter.Tk() | |
root.title("Create Box") |
This file contains 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 init_and_save(cn): | |
pos = [] | |
path = cn.path() | |
posX = posY = 0 | |
if len(cn.children()) > 0: | |
for node in cn.children(): | |
pos.append(node.position()) | |
posX = sum([x[0] for x in pos]) / len(pos) | |
posY = max([x[1] for x in pos]) |
This file contains 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
int prim = addprim(0, "polyline"); | |
vector p_sphere = point(1, "P", 0); | |
int ptn_sphere = addpoint(0, p_sphere); | |
addvertex(0, prim, @ptnum); | |
addvertex(0, prim, ptn_sphere); |
This file contains 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
<?xml version="1.0"?> | |
<root> | |
<appdef> | |
<appname>TERMINAL</appname> | |
<equal>com.apple.Terminal</equal> | |
</appdef> | |
<appdef> | |
<appname>ITERM2</appname> | |
<equal>com.googlecode.iterm2</equal> | |
</appdef> |
This file contains 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
ophide Sop labs::min_max_average | |
ophide Sop attribnoise | |
ophide Sop volumerasterizeattributes |
This file contains 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 disconnect_and_refresh(list): | |
for node in list: | |
if (node.isEditable() and(len(node.children()) != 0)): | |
for inConnection in node.inputConnections(): | |
inIndex = inConnection.inputIndex() | |
inNode = inConnection.outputNode() | |
inNode.setInput(inIndex, None, 0) | |
for outConnection in node.outputConnections(): | |
outIndex = outConnection.inputIndex() |
This file contains 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
for node in hou.selectedNodes(): | |
path = node.parent().path() | |
type = node.type().name() | |
name = node.name() | |
node.destroy() | |
geo = hou.node(path).createNode(type, name) | |
geo.moveToGoodPosition() |
This file contains 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 time import gmtime, strftime | |
cur_desktop = hou.ui.curDesktop() | |
desktop = cur_desktop.name() | |
viewer = hou.paneTabType.SceneViewer | |
panetab = cur_desktop.paneTabOfType(viewer).name() | |
persp = cur_desktop.paneTabOfType(viewer).curViewport().name() | |
camera_path = desktop + '.' + panetab + '.' + 'world.' + persp | |
hn = hou.getenv('HIPNAME') | |
defaultName = strftime(hn + '%Y%m%d.jpg', gmtime()) |
This file contains 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
for node in hou.selectedNodes(): | |
for inConnection in node.inputConnections(): | |
inIndex = inConnection.inputIndex() | |
inNode = inConnection.outputNode() | |
inNode.setInput(inIndex, None, 0) | |
for outConnection in node.outputConnections(): | |
outIndex = outConnection.inputIndex() | |
outNode = outConnection.outputNode() | |
outNode.setInput(outIndex, None, 0) |