mktiftoc

Download:

print "mktiftoc v0.1.0 beta\r\n\r\n"
if (ARGV.length < 8) #>
	print "Usage: mktiftoc.rb [tocFileName] [FrameRate] [Width] [Height] [PathToFiles] [StartAt] [StopAt] [LengthWithLeadingZeros]\r\n"
	exit
	end
begin
	thetoc = File.open(ARGV[0], "wb")
rescue SystemCallError
	if (thetoc == nil)
		print "Error: Cannot write to file!"
	else
		print "SystemCallError"
		end
	exit
	end
thetoc.write("TIFFLIST\n")
thetoc.write(ARGV[1] + "\n")
thetoc.write(ARGV[2] + "\n")
thetoc.write(ARGV[3] + "\n")
x = ARGV[5].to_i
while (x <= ARGV[6].to_i)
	thetoc.write(ARGV[4] + sprintf("%0" + ARGV[7] + "d", x) + ".tif\n")
	x = x + 1
	end
print "\r\nFinished\r\n"
exit

documentation.txt -> unavailable, yet. Please be patient.
license.txt

This software requires ruby. http://ruby-lang.org

<<< back