The upstream script was failing with an error on the path.exists function call. So I forked the script and patched it. I am using node.js v12.16.2
View DownloadMixamoByLouisHong.js
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
// Anonymous "self-invoking" function | |
alert("Thank you for using this script created by Louis Hong (/u/loolo78)\n\nThe download will now begin."); | |
(function() { | |
// Load the script | |
var script = document.createElement("SCRIPT"); | |
script.src = 'https://code.jquery.com/jquery-latest.min.js'; | |
script.type = 'text/javascript'; | |
document.getElementsByTagName("head")[0].appendChild(script); |
View BlenderToUsdCurves.py
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
################################################################# | |
# This script works on a single selected hair geometry object | |
# modify the stagePath before using | |
# | |
################################################################ | |
import bpy | |
from pxr import Usd, UsdGeom, Sdf, Gf | |
stagePath = r'C:\work\dumpTest.usda' |
View dyn_return_func.py
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
class A(object): | |
def __init__(self): | |
self.var1 = None | |
self.var2 = None | |
class B(object): | |
def __init__(self): | |
self.var3 = None | |
self.var4 = None |
View gist:1224b699ee0d2868e8214b1b579eac72
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 reMap(value, maxInput, minInput, maxOutput, minOutput): | |
value = maxInput if value > maxInput else value | |
value = minInput if value < minInput else value | |
inputSpan = maxInput - minInput | |
outputSpan = maxOutput - minOutput | |
scaledThrust = float(value - minInput) / float(inputSpan) |
View 1.html
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
/foo/bar?yeah=loo | |
你好 |
View maya-websocket.py
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 maya.cmds | |
import maya.utils | |
from SimpleWebSocketServer import SimpleWebSocketServer, WebSocket | |
from threading import Thread | |
class SimpleEcho(WebSocket): | |
def handleMessage(self): | |
# echo message back to client | |
#self.sendMessage(maya.utils.executeInMainThreadWithResult(self.data)) |
View painting2sprites.sh
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
#!/bin/bash | |
# painting2sprites - A simple script to read an ORA, resize and trim output PNGs. | |
INPUT_FILE=$1 | |
OUTPUT_DIR=$2 | |
RESIZE_SCALE="25%" | |
if [ "$2" == "" ]; then |
View nodebox1.java
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
java.lang.NullPointerException | |
at nodebox.client.NetworkView.paintCurrentConnection(Unknown Source) | |
at nodebox.client.NetworkView.paintComponent(Unknown Source) | |
at javax.swing.JComponent.paint(JComponent.java:1045) | |
at javax.swing.JComponent.paintChildren(JComponent.java:878) | |
at javax.swing.JComponent.paint(JComponent.java:1054) | |
at javax.swing.JComponent.paintToOffscreen(JComponent.java:5212) | |
at javax.swing.BufferStrategyPaintManager.paint(BufferStrategyPaintManager.java:295) | |
at javax.swing.RepaintManager.paint(RepaintManager.java:1236) | |
at javax.swing.JComponent._paintImmediately(JComponent.java:5160) |
View hello3.6.py
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 sys | |
pyversion = sys.version | |
pyexecutable = sys.executable | |
print(f"""You are using \n\tPython {pyversion} \nIt is located at \n\t{pyexecutable}""") |
NewerOlder