Writeffmpeg is a python script and a node that allows you to render from Nuke directly into ffmpeg. Instead of a 2 step process where you render from Nuke to a temporary image sequence that you then transcode using ffmpeg, this solution writes to a single uint16 cache tiff file and this data gets piped into ffmpeg.
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 random | |
import numpy | |
LOW_BOUND = -10.0 | |
HIGH_BOUND = 10.0 | |
POPULATION_SIZE = 100 | |
MAX_GENERATIONS = 1000 | |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<link rel="stylesheet" href="http://cdn.leafletjs.com/leaflet-0.7.3/leaflet.css" /> | |
<script src="http://cdn.leafletjs.com/leaflet-0.7.3/leaflet.js"></script> | |
<style> | |
body { padding: 0; margin: 0; } | |
html, body, #map { height: 100%; } | |
</style> | |
</head> |
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
####### | |
#Help with building Facial Rig User interface secondary movers | |
#By | |
#Nathaniel O. Anozie (ogbonnawork at gmail dot com) | |
# | |
#Inspired by Andy Van Straten -- learning about joints riding on curves | |
#Inspired by Fabio Bonvicini -- i was inspiredy by his curve based online tutorials on facial rigs | |
# | |
# | |
#see also naNurbsSurfaceControl, naFaceBuffer (more phoneme based) na_faceIt.py (more ui based) |
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 time | |
import numpy as NP | |
from redis import StrictRedis as redis | |
# a 2D array to serialize | |
A = 10 * NP.random.randn(10000).reshape(1000, 10) | |
# flatten the 2D NumPy array and save it as a binary string | |
array_dtype = str(A.dtype) |
Tested requirements:
- Ubuntu 14.04 LTS amd64
- PostgreSQL 9.3.4
- lf-core 3.0.1
- webmcp 1.2.5
- rocketwiki-lqfb 0.4
- lf-frontend 2.2.5
- lighttpd 1.4.33-1+nmu2ubuntu2
Add postgresql repository (check distro version). Create /etc/apt/sources.list.d/pgdg.list
. Add there deb http://apt.postgresql.org/pub/repos/apt/ trusty-pgdg main
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
============================== | |
Expression: (id=\d)(.+?)(") | |
============================== | |
Python script to download: | |
import os.path |
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 | |
# https://timwise.co.uk/2014/02/03/converting-kml-to-gpx-with-python/ | |
# https://gist.github.com/timabell/8791116 | |
import argparse | |
import xml.sax | |
parser = argparse.ArgumentParser(description='Convert annoying google android my tracks kml data to sensible gpx files') | |
parser.add_argument('input_file') |
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/env python | |
# ndvi.py red.tif nir.tif output-ndvi.tif | |
# Calculate NDVI (see Wikipedia). Assumes atmospheric correction. | |
# (Although I use it without all the time for quick experiments.) | |
import numpy as np | |
from sys import argv | |
from osgeo import gdal, gdalconst |
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
"""Test of finding Nuke's viewer widget, and intercepting the hardwired "c" shortcut and rewiring it to view the RGB channel | |
""" | |
from PySide import QtGui, QtCore | |
def findviewer(): | |
stack = QtGui.QApplication.topLevelWidgets() | |
viewers = [] | |
while stack: |
NewerOlder