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 (me) | |
| { | |
| var prj=app.project; | |
| function _indexOf(arr, itm){ | |
| for(var i=0; i<arr.length; i++) if(arr[i]==itm) return(i); | |
| return(-1); | |
| } | |
| function _note(arr) | |
| { |
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
| @if(0)==(0) echo off | |
| cscript.exe //NoLogo //E:JScript "%~f0" %* | |
| goto :eof | |
| @end | |
| f1: | |
| // command <movie file> [<frame>] | |
| var ws = WScript; | |
| if(ws.Arguments.Count()<1) ws.Quit(); | |
| var fn = ws.Arguments.Item(0); | |
| var qt = ws.CreateObject("QuickTimePlayerLib.QuickTimePlayerApp"); |
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 | |
| nodes = hou.selectedNodes() | |
| for n in nodes: | |
| print n | |
| g = n.displayNode().geometry() | |
| for f in g.prims(): | |
| print "f %d:" % f.number(), | |
| for v in f.vertices(): | |
| print v.point().number(), | |
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 | |
| def _e(expr): return(hou.hscriptExpression(expr)) | |
| nodes = hou.selectedNodes() | |
| for n in nodes: | |
| g = n.geometry() | |
| if g is None: continue | |
| pi = 0 |
NewerOlder