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
#!/usr/bin/python | |
# Pass year and month e.g. python monthly.py 2020 02 | |
# ...will transcode or symlink everything found into /works/monthlies/monthlies202002/rushes/ | |
import subprocess, sys, os | |
def find(folder, pattern, year, month): | |
firstofmonth = '%s-%s-01' % (year, month) | |
firstnextmonth = '%s-%d-01' % (year, int(month)+1) | |
c = ['find', folder, '-iname', pattern, '-type', 'f', '-newermt', firstofmonth, '!', '-newermt', firstnextmonth] |
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
uv on points, massive smooth of P with attribblur, normal, polyframe | |
then into this with the original on second input: | |
[email protected] = dot(@opinput1_P - @P, v@N); | |
[email protected] = dot(@opinput1_P - @P, v@tangentu); | |
[email protected] = dot(@opinput1_P - @P, v@tangentv); | |
remesh the smoothed one then output of above into second input of: |
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
00000000001b7200 s EH_frame1 | |
0000000000005520 T _convert_10bit_y_uv_vectors_to_10bit_rgb_vectors_bt601_sse2_ssse3 | |
00000000000055f0 T _convert_10bit_y_uv_vectors_to_10bit_rgb_vectors_bt709_sse2_ssse3 | |
0000000000005470 T _convert_10bit_y_uv_vectors_to_10bit_rgb_vectors_sse2_ssse3 | |
0000000000004d90 T _convert_10bit_y_uv_vectors_to_8bit_rgb_vectors_bt601_sse2_ssse3 | |
0000000000004e50 T _convert_10bit_y_uv_vectors_to_8bit_rgb_vectors_bt601_sse2_ssse3_sse41 | |
0000000000004f10 T _convert_10bit_y_uv_vectors_to_8bit_rgb_vectors_bt709_sse2_ssse3 | |
0000000000004fd0 T _convert_10bit_y_uv_vectors_to_8bit_rgb_vectors_bt709_sse2_ssse3_sse41 | |
0000000000005090 T _convert_10bit_y_uv_vectors_to_8bit_rgb_vectors_sse2_ssse3 | |
0000000000005150 T _convert_10bit_y_uv_vectors_to_8bit_rgb_vectors_sse2_ssse3_sse41 |
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
#!/usr/bin/python | |
import os, glob, xml.etree.ElementTree as et | |
html = open('/tmp/matchboxlist.html', 'w') | |
xmls = glob.glob('/opt/Autodesk/presets/2019.2.1/matchbox/shaders/LOGIK/*.xml') | |
xmls.sort() | |
for xml in xmls: |
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 PIL import Image | |
import imagehash, os, sys | |
basenames1 = os.listdir(sys.argv[1]) | |
basenames2 = os.listdir(sys.argv[2]) | |
list1 = [] | |
list2 = [] | |
for (dirn, basen, lis) in ((sys.argv[1], basenames1, list1), (sys.argv[2], basenames2, list2)): | |
for fil in basen: |
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
// Create a basis from points of triangle. | |
matrix3 basis_from_triangle(vector p1, p2, p3) | |
{ | |
// Axes vectors. May not be orthogonal. | |
vector X, Y, Z; | |
Z = p2 - p1; | |
X = p3 - p1; | |
Y = normalize(cross(Z, X)) * length(p2 - p3); | |
return set(X, Y, Z); | |
} |
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
#!/usr/bin/python | |
# Prints a progress bar and stats for a folder filling with files | |
# Pass the path and the total expected count, like: | |
# ./progress.py /path/to/somewhere/ 900 | |
# |UUUUUUUUUUUUUUUUUUUUUUUUUUUUUUU | 62% 157/250 0.2fps 6.4spf eta0:09:57 | |
# TODO: | |
# o Data rate stats | |
# o Take a fragment of shell script for custom counting | |
import os, sys, time, datetime |
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
#!/usr/bin/python | |
# pass: /path/to/scene.hip ropname startframe endframe howmany threadseach | |
# e.g.: | |
# /works/useful/poast/hrender-multi.py /Volumes/fast/nissan/eye/eye_v08.hip mantra1 1 118 16 1 | |
import sys, os, time | |
hipfile = sys.argv[1] | |
rop = sys.argv[2] | |
start = int(sys.argv[3]) |
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
set cut_paste_input [stack 0] | |
version 11.2 v1 | |
CheckerBoard2 { | |
inputs 0 | |
format "2048 1024 0 0 2048 1024 1 2048x1024" | |
name CheckerBoard1 | |
selected true | |
xpos -40 | |
ypos -153 | |
} |
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
# Retime a tracked object to better fit a target curve | |
# Select two Transform nodes: the first with a jerky tracked curve, the | |
# second with a smooth target curve | |
# Group effort by Lewis Saunders, Unai Martínez Barredo, Erwan Leroy | |
# Make a function to calculate the distance between two points | |
def distance(a, b): | |
return pow((a[0]-b[0])**2 + (a[1]-b[1])**2, 0.5) | |
# Find the closest point to p on the line ab |
NewerOlder