Skip to content

Instantly share code, notes, and snippets.

@jedypod
jedypod / HexGenerator.nk
Last active December 17, 2018 12:37
Generates a Hex Pattern
set cut_paste_input [stack 0]
version 5.2 v1
Group {
inputs 0
name HexGenerator
selected true
xpos -50
ypos -482
addUserKnob {20 HexGenerator}
addUserKnob {41 format T HexGenCalc.format}
set cut_paste_input [stack 0]
push $cut_paste_input
Group {
name CornerPinMatrix
help "<b>PlanarProjection</b>\n\nGenerates 2D coordinates for points in 3D space. Type in 3D point coordinates, or use vertex selection in 3D viewer and click set to pick average of selected points, or set points to set all four points at once. You can connect node output to scene together with your pointcloud or geometry and see where your points are located in 3d space. Double click any of them to move it in 3d space like any traditional nuke transform control.\n\nA matrix transform is also generated to be used with RotoPaint, SplineWarp and GridWarp nodes.\n\nIf you are using matrix in GridWarp, points have to be in clockwise order, pick them one by one! Command set points doesn't respect selection order!\n\nCheck out the demo video on my website!\n\nKudos to Ivan Busquets for help with matrix math.\n\n--\ndeveloped by Vit Sedlacek (c)2012\nwww.vitsedlacek.com\n\n-- \nModified by Jed Smith to make calculation time nearly ins
##############################################################
# TMUX CONF JEDEDIAH
##############################################################
set-option -g prefix M-a
unbind-key M-a
bind-key M-a send-prefix
set -g base-index 1
This file has been truncated, but you can view the full file.
@jedypod
jedypod / ToeReverse.nk
Last active January 18, 2018 15:31
A reversible Toe.
set cut_paste_input [stack 0]
push $cut_paste_input
Group {
name ToeReverse
tile_color 0x7aa9ffff
addUserKnob {20 Toe}
addUserKnob {18 lift}
lift 0
addUserKnob {6 lift_panelDropped l "panel dropped state" -STARTLINE +HIDDEN}
addUserKnob {18 pivot}
@jedypod
jedypod / 0_reuse_code.js
Created September 4, 2017 21:53
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
@jedypod
jedypod / PNoise.nk
Created June 21, 2017 17:27
One position noise to rule them all.
set cut_paste_input [stack 0]
push $cut_paste_input
add_layer {Pref Pref.red Pref.green Pref.blue Pref.alpha}
Group {
name PNoise
addUserKnob {20 PNoise}
addUserKnob {41 p_channel l "position data" T _POSITION_DATA_.in}
addUserKnob {41 output_channel l output -STARTLINE T _NOISE_OUT_.out}
addUserKnob {6 unpremultiply +STARTLINE}
unpremultiply true
@jedypod
jedypod / DofCalc.nk
Last active December 4, 2022 14:58
DofCalc visualizes the near and far limit depth of field given a specified lens focal length, aperture, filmback size, and focus distance. Useful for visualizing plausible focus ranges given a matchmove camera and lidar scan.
set cut_paste_input [stack 0]
push $cut_paste_input
Group {
name DofCalc
label "<left>\nfocal length: \[format \"%.0f\" \[value f]]\nf-stop: \[format \"%.2f\" \[value N]]\nsubject dist: \[format \"%.2f\" \[value s]]\n\nhyperfocal dist: \[format \"%.2f\" \[value H]]\n---------------------------\ndof: \[format \"%.2f\" \[value dof]]\ndof near: \[format \"%.2f\" \[value Dn]]\ndof far: \[format \"%.2f\" \[value Df]]"
addUserKnob {20 DofCalc}
addUserKnob {4 depth_unit l "depth unit" t "Set your depth unit" M {mm cm dm m inch ft}}
depth_unit ft
addUserKnob {41 s l subject_distance T VAR.s}
addUserKnob {41 f l focal_length T VAR.f}
@jedypod
jedypod / rsync-time-machine.py
Created April 6, 2017 22:26
My linux rsync time machine script
#!/usr/bin/python
"""
Karl's unix/rsync time-machine script.
Maintains daily and monthly snapshots of a directory tree, hard linked to save
space when files don't change.
Inspired by http://www.mikerubel.org/computers/rsync_snapshots/, but using
more robust coding practices.
Features:
@jedypod
jedypod / ColorTracker.nk
Last active October 19, 2019 05:07
ColorTracker: A wrapper for the CurveTool, which allows you to analyze color change over time of an input, and apply that data to a grade in matchmove or stabilize mode around a specified reference frame. Because I am bad at remembering math.
Group {
name ColorTracker
addUserKnob {20 ColorTracker}
addUserKnob {26 instructions_text l <b>Instructions: T "1). Stabilize your plate around the area you want to track\n2). Crop your plate to just the area you want to analyze\n4). Press Track Color to analyze the footage\n5). Create a matchmove or stabilize grade, and specify your reference frame\n6). You can scale the curve around a specified pivot value on the grade node \n using the color_pivot and color_mult knobs in the ColorTrack tab"}
addUserKnob {26 ""}
addUserKnob {26 label_trackcolor l "<b>Track Color" T " "}
addUserKnob {41 track_color l "Track Color" t "This button will track the color change over the specified framerange and put the data into the intensitydata knob." T CurveTool.go}
addUserKnob {41 intensitydata T CurveTool.intensitydata}
addUserKnob {26 ""}
addUserKnob {26 label_apply_color_track l "<b>Apply Track" T " "}