Skip to content

Instantly share code, notes, and snippets.

View julik's full-sized avatar
💭
🎺

Julik Tarkhanov julik

💭
🎺
View GitHub Profile
$ depix-describe ~/Desktop/Storm/E036/E036_L005.0007.dpx
Describing DPX /Users/julik/Desktop/Storm/E036/E036_L005.0007.dpx. Empty elements are omitted.
===================================================
File information Endianness (SDPX is big endian) SDPX
Offset to image data in bytes 8192
Version of header format V1.0
Total image size in bytes 9641984
Whether the basic headers stay the same through the sequence (1 means they do) 1
Generic header length 1664
Industry header length 384
require "rubygems"
require "tracksperanto"
class MyCustomPipeline < Tracksperanto::Pipeline::Base
def run(from_input_file_path)
# Grab the input
read_data = File.open(from_input_file_path, "rb")
# Instantiate the importer
importer = Tracksperanto::Import::FlameStabilizer.new
__________________________________________________
Setup for Remote Control of Flame(Linux) via VNC
__________________________________________________
GENERAL NOTES:
-- For the sake of simplicity, I've referred to the Autodesk application as "Flame", since that's what I'm using, although this will probably work for any other Autodesk Linux system.
-- It's necessary to set up two vnc servers on two different ports - one, an X11 vnc server for accessing the GUI login screen of the machine in order to do the initial login to the Flame account and another vnc server - KDE Desktop Sharing - in order to effectively run the application - to support mouse clicks and proper screen refreshes. The port numbers used - 5902 and 5901 can be changed to whatever will work for your particular situation.
require File.dirname(__FILE__) + "/../lib/init"
# Log on my own
ActiveRecord::Base.logger = Logger.new(TW_ROOT + "/log/worker.log")
File.open(WORKER_PIDFILE, "w") {|f| f << Process.pid }
begin
loop do
# We might have lost the connection when we forked, so reconnect
require 'rubygems'
require 'depix'
dpx = Depix::Editor.new("/Users/julik/Desktop/Case/1374470_adjusted.dpx")
dpx.file.copyright = "Copyleft"
dpx.file.reserve = "FileReserve"
dpx.orientation.reserve = "OrientReserve"
dpx.orientation.device = "Chainik"
dpx.orientation.serial = "43"
dpx.film.reserve = "FilmRezerve"
require "rubygems"
require "tracksperanto"
# Make a tracker called "FirstPoint"
t = Tracksperanto::Tracker.new(:name => "FirstPoint")
# Add a keyframe to it at frame 20 (counting from 0), at 123
# in X and 678 in Y (from lower left corner).
t.keyframe! :frame => 20, :abs_x => 123, :abs_y => 678
# Lighttpd sets the wrong SCRIPT_NAME and PATH_INFO if you mount your
# FastCGI app at "/". This middleware fixes this issue. This is also
# modified to account for the case when SCRIPT_NAME is the name of the
# 404 script
class LightyWorkaround
def initialize(app)
@app = app
end
def call(env)

FX SET PREP EQPT CHECKLIST

Tracking eqpt - optional

  • Tracking sticks if expected
  • Tracking balls (pingpong balls)
  • Tennis balls if expected

Tracking eqpt - compulsory

# Keeping the Dutch format for dates and times enforce the dot as decimal separator for all Carbon and Cocoa apps
defaults write .GlobalPreferences AppleICUNumberSymbols -dict 0 '.' 1 ',' 10 '.' 8 '€'
javascript:x%20=%20document;y%20=%20window;Q%20=%20null;if(x.selection)%20{Q%20=%20x.selection.createRange().text;}%20else%20if%20(y.getSelection)%20{Q%20=%20y.getSelection();}%20else%20if%20(x.getSelection)%20{Q%20=%20x.getSelection();}Q%20=%20encodeURIComponent(Q);var%20http%20=%20new%20XMLHttpRequest();var%20url%20=%20%22http://he-3d-05-lin:3333/%22;http.open(%22POST%22,%20url,%20true);http.setRequestHeader(%22Content-type%22,%20%22text/plain%22);http.send(Q);