Skip to content

Instantly share code, notes, and snippets.

View mileslauridsen's full-sized avatar

mileslauridsen

View GitHub Profile
@mileslauridsen
mileslauridsen / Transform.cpp
Created September 18, 2021 07:07 — forked from jedypod/Transform.cpp
Nuke blinkscript implementation of a simple image Transform operator. This blinkscript demonstrates pixel filter interpolation algorithms.
/*
Nuke blinkscript implementation of a simple image Transform operator.
Demonstrates pixel filter interpolation algorithms.
The following pixel filters are implemented:
0 - Blackman-Harris : Similar to cubic, but better performance in high frequencies
1 - Lanczos4 : 2x2 lanczos windowed sinc function
2 - Lanczos6 : 3x3 lanczos windowed sinc function
3 - Cubic : (Bicubic interpolation) - a=0.0, b=0.0
4 - Mitchell : (Bicubic interpolation) - a=1/3, b=1/3
@mileslauridsen
mileslauridsen / aimRotation.py
Created March 24, 2021 05:30 — forked from ivogrig/aimRotation.py
Example method for turning a direction vector into an euler rotation (TD SDK)
# python
#
# Example method for turning a direction vector into an euler rotation
#
# There is a similar example using the API for this by Lukasz Pazera: https://gist.github.com/lukpazera/5994547
# This function really does the same, using the mathutils of the TD SDK
import modo
import math
# --------------------------------------------------------------
# defaultBackdrop.py
# Version: 1.1.0
# Last Updated: January 11th, 2018
# --------------------------------------------------------------
# --------------------------------------------------------------
# USAGE:
#
# --------------------------------------------------------------
# autoContactSheet.py + csTextShortcuts()
# Version: 0.2.0
# Last Updated: August 23rd, 2018
# --------------------------------------------------------------
# --------------------------------------------------------------
# USAGE:
#