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
using System.Collections; | |
using System.Collections.Generic; | |
using UnityEngine; | |
using AX; | |
public class TableDesigner : MonoBehaviour { | |
public AXModel model; | |
public AXParameter p_radius; | |
public AXParameter p_height; |
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
var folderPath = "~/Desktop"; | |
var fileName = "scanned.png"; | |
var saveName = "scanned.svg"; | |
var filePath = new File(folderPath + fileName); | |
open(filePath); | |
var rItems = activeDocument.rasterItems; | |
for(var i = 0; i<rItems.length; i++){ |
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
private void RunScript(List<Point3d> pts, List<object> objs, double thresh, ref object A, ref object B) | |
{ | |
DataTree<object> tree = new DataTree<object>(); | |
List<int> usedList = new List<int>(); | |
List<Point3d> centers = new List<Point3d>(); | |
for(int i = 0; i < pts.Count; i++){ | |
var pt1 = pts[i]; | |
if(!usedList.Contains(i)){ | |
GH_Path path = new GH_Path(i); | |
tree.Add(objs[i], path); |
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
$("video").setAttribute("style", $("video").getAttribute("style") + "filter: brightness(200%);"); |
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
using System.Collections; | |
using System.Collections.Generic; | |
using UnityEngine; | |
public class Follow : MonoBehaviour { | |
public Material characterMarkerMat; | |
// Use this for initialization | |
void Start () { | |
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
{ | |
"room_requisites" : | |
[ | |
{ | |
"id" : 0, | |
"name" : "dining", | |
"type" : "social", | |
"min_width" : 3.0, | |
"max_width" : 30.0, | |
"min_length" : 3.0, |
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 hou | |
items = hou.selectedItems() | |
editor = hou.ui.paneTabOfType(hou.paneTabType.NetworkEditor) | |
images = list(editor.backgroundImages()) | |
for item in items: | |
if isinstance(item, hou.NetworkBox): | |
nodes = item.nodes() | |
nodes = hou.sortedNodes(nodes) | |
for i in range(len(nodes)): | |
node = nodes[i] |
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 hou | |
import time | |
import os | |
editor = hou.ui.paneTabOfType(hou.paneTabType.NetworkEditor) | |
dir = os.path.dirname(hou.hipFile.path()) | |
items = hou.selectedItems() | |
editor = hou.ui.paneTabOfType(hou.paneTabType.NetworkEditor) | |
for item in items: |
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 hou | |
import os | |
items = hou.selectedItems() | |
editor = hou.ui.paneTabOfType(hou.paneTabType.NetworkEditor) | |
dir = os.path.dirname(hou.hipFile.path()) | |
file = open(dir + '/params.txt', 'a') | |
for item in items: | |
seps = item.comment().split('-') | |
if len(seps) == 2 and seps[1] == "1": | |
file.write('== '+seps[0]+'\n\n') |
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
using System.Collections; | |
using System.Collections.Generic; | |
using UnityEngine; | |
public class ParameterController : MonoBehaviour { | |
private HoudiniApiAssetAccessor myAsset; | |
public GameObject digitalAssetObject; | |
// Use this for initialization |