Skip to content

Instantly share code, notes, and snippets.

View Shrinks99's full-sized avatar
🌐
Archiving!

Henry Wilkinson Shrinks99

🌐
Archiving!
View GitHub Profile
@Shrinks99
Shrinks99 / cabinsorter.py
Created March 19, 2023 06:49
This script was entirely created by ChatGPT using its GPT-4 powered model over the course of about 4 hours of instruction. With my test dataset, it results in a 24% successful grouping of students based on their requests.
import csv
import re
def find_student(students, first_name, last_name=None):
for student in students:
if student['first_name'] == first_name and (last_name is None or student['last_name'] == last_name):
return student
return None
def check_avoid_list(student, notes):
@Shrinks99
Shrinks99 / reconcile3DPro.nk
Last active May 11, 2022 23:45
Updated for Nuke 13 (Python3) Original script created Innders on Nukepedia: https://www.nukepedia.com/gizmos/3d/reconcile3dpro/finishdown?miv=1&mjv=1
set cut_paste_input [stack 0]
version 13.1 v3
push $cut_paste_input
Group {
name reconcile3DPro
tile_color 0xc43c00ff
selected true
xpos 151
ypos -112
addUserKnob {20 User}
@Shrinks99
Shrinks99 / hw_vhs.nk
Last active May 8, 2022 21:11
An unfinished VHS filter for Nuke 13+
set cut_paste_input [stack 0]
version 13.1 v3
push $cut_paste_input
Group {
name hw_vhs
tile_color 0x343334ff
selected true
xpos 97
ypos 115
addUserKnob {20 tape l Tape}
@Shrinks99
Shrinks99 / Patch_Warp_custom.nk
Last active March 16, 2022 18:00
Patch Warp Custom by Nick Kostomarov updated for Nuke 13 (Python 3) Original source: https://www.nukepedia.com/gizmos/transform/patch_warp_custom/
#! C:/Program Files/Nuke13.1v1/nuke-13.1.1.dll -nx
version 13.1 v1
Group {
inputs 0
name Patch_Warp_custom
tile_color 0x3b6957ff
xpos -686
ypos -19
addUserKnob {20 User}
addUserKnob {22 Set_reference_frame l "Set reference frame" -STARTLINE T "myNode = nuke.thisNode()\nTrackNode = myNode.dependencies()\[0]\nmaxTrakers = 50\n\nfor n in range(1, maxTrakers +1):\n myNode\['tr' + str(n)].clearAnimated()\n myNode\['tr' + str(n)].setValue(0, 0)\n myNode\['tr' + str(n)].setValue(0, 1)\n myNode\['reference_tr' + str(n)].setValue(0, 0)\n myNode\['reference_tr' + str(n)].setValue(0, 1)\n\n\nif TrackNode.Class() == 'Tracker4': \n myKnob = TrackNode\['tracks']\n\n XList = \[]\n for n in range(2, 2000, 31):\n if myKnob.value(n) == 1:\n break\n elif myKnob.value(n) == 0:\n break\n XList.append(myKnob.value(n))\n print((myKnob.value(n)))\n \n lengthList = len(XList) \n \n for n in range(1, lengthList+1):\n
@Shrinks99
Shrinks99 / focalc.py
Created February 4, 2022 16:13
A simple calculator to determine an image's focal length in pixels based on recorded camera data, lens info, and plate info
imgWidthPx = float(input("Image width in pixels: "))
sensorWidth = float(input("Sensor width in mm: "))
focalLen = float(input("Lens focal length in mm: "))
focalLenPx = str(float(float(focalLen / sensorWidth) * imgWidthPx))
print("The focal length in pixels is: " + focalLenPx)
@Shrinks99
Shrinks99 / TrackerToRoto.py
Last active January 4, 2022 01:19
Original Nuke script by Nara Andrade, updated for Python3 https://www.nukepedia.com/python/nodegraph/tracker-to-roto
def TrackerToRoto():
#CREATES NEW LAYER ON ROTO OR ROTOPAINT WITH TRACKING DATA
import nuke.rotopaint as rp
n = nuke.selectedNodes()
try:
nuke.selectedNode()
except:
print((nuke.message("Select a Tracker and a Roto or Rotopaint!")))
@Shrinks99
Shrinks99 / blender-style.qss
Created February 19, 2021 07:15
A very incomplete blender-esque style for Natron
/* -*- mode: css -*- */
/*%1 = selection-color %2 = medium background %3 = soft background %4 = strong background %5 = text colour*/
/*%6 = interpolated value color %7 = keyframe value color %8 = disabled editable text (black) %9 = expression value color*/
/*%10 = altered text colour, %11 = mouse over selection color*/
/*You have to fill the arguments with stylesheet-representable colours.*/
QWidget {
color: %5;
background-color: %2;
}
@Shrinks99
Shrinks99 / keybase.md
Created September 28, 2019 19:42
Proof that I am who I am

Keybase proof

I hereby claim:

  • I am shrinks99 on github.
  • I am shrinks99 (https://keybase.io/shrinks99) on keybase.
  • I have a public key ASDdXe-YfJlxlhN2ks3wkQqeuxFRPl4-w1BNVSJiJC4HPQo

To claim this, I am signing this object: