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() |
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
| { | |
| "version": "2.0.0", | |
| "tasks": [ | |
| { | |
| "label": "Run", | |
| "command": "/usr/local/bin/processing-java", | |
| "type": "process", | |
| "args": [ | |
| "--force", | |
| "--sketch=${workspaceFolder}/${relativeFileDirname}", |
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 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 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 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 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
| 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 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
| <?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 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
| ophide Sop labs::min_max_average | |
| ophide Sop attribnoise | |
| ophide Sop volumerasterizeattributes |
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 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() |