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 unreal | |
import PySide2.QtWidgets as widgets | |
import traceback | |
class UEQApplication (widgets.QApplication): | |
""" | |
Ensure that an application never tries to `exec_` inside of Unreal |
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 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!") |
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
"""Perlin noise implementation.""" | |
# Licensed under ISC | |
from itertools import product | |
import math | |
import random | |
def smoothstep(t): | |
"""Smooth curve with a zero derivative at 0 and 1, making it useful for | |
interpolating. |