bin/tracksperanto in tracksperanto-1.5.6 vs bin/tracksperanto in tracksperanto-1.5.7
- old
+ new
@@ -23,10 +23,11 @@
scale_y = 1.0
slip = 0
golden_tracks = false
x_shift = 0
y_shift = 0
+set_prefix = ''
readers = Tracksperanto.importer_names
parser = OptionParser.new do | p |
p.banner = "Usage: tracksperanto -f ShakeScript -w 1920 -h 1080 /Films/Blockbuster/Shots/001/script.shk"
@@ -41,10 +42,11 @@
reader_list = readers.join("\n\t")
STDERR.puts "Unknown reader #{f.inspect}, available readers:\n\t#{readers.join(', ')}"
exit(-1)
end
end
+ p.on(" -p", "--prefix PREFIX", String, "A prefix to prepend to tracker names in bluk") { |w| set_prefix = w }
p.on(" -w", "--width WIDTH_IN_PIXELS", Integer, "Absolute input comp width in pixels (will try to autodetect)") { |w| width = w }
p.on(" -h", "--height HEIGHT_IN_PIXELS", Integer, "Absolute input comp height in pixels (will try to autodetect)") {|w| height = w }
p.on(" -xs", "--xscale X_SCALING_FACTOR", Float, "Scale the result in X by this factor (1.0 is the default)") {|sx| scale_x = sx }
p.on(" -ys", "--yscale Y_SCALING_FACTOR", Float, "Scale the result in Y by this factor (1.0 is the default)") {|sy| scale_y = sy }
p.on(" -s", "--slip FRAMES", Integer, "Slip the result by this number of frames, positive is 'later'") {|sy| slip = sy }
@@ -80,16 +82,17 @@
exit(-1)
end
pipe = Tracksperanto::Pipeline::Base.new
pipe.progress_block = lambda{|percent, msg| STDOUT.write(".") }
-pipe.run(input_file, :pix_w => width, :pix_h => height, :parser => reader_klass) do | scaler, slipper, golden, reformat, shift |
+pipe.run(input_file, :pix_w => width, :pix_h => height, :parser => reader_klass) do | scaler, slipper, golden, reformat, shift, prefix |
slipper.slip = slip
scaler.x_factor = scale_x
scaler.y_factor = scale_y
golden.enabled = golden_tracks
reformat.width = reformat_w if reformat_w
reformat.height = reformat_h if reformat_h
shift.x_shift = x_shift
shift.y_shift = y_shift
+ prefix.prefix = set_prefix
end
STDOUT.write("\n")
\ No newline at end of file