lib/digitalfilmtree/vfx/edl_ml_renamer.rb in digitalfilmtree-0.0.11 vs lib/digitalfilmtree/vfx/edl_ml_renamer.rb in digitalfilmtree-0.0.12
- old
+ new
@@ -21,15 +21,20 @@
self.ml && File.exists?(self.ml) &&
self.edl && File.exists?(self.edl) &&
self.movs.size >= 1
end
+ def events
+ EDL::Parser.new.parse File.open(self.edl).read
+ end
+
def execute options={}
raise "Not Ready" unless ready?
parse_marker_list
get_marker_list_name_column
@count = 0
- EDL::Parser.new.parse(File.open(self.edl)).each do |e|
+ binding.pry if $pry_at_parser
+ events.each do |e|
find_clip(e.src_start_tc.to_s) do |clip|
get_vfx_name(e.rec_start_tc.to_s) do |vfx_name|
clip.rename_to("#{vfx_name}.mov", options)
@count += 1
end