lib/import/nuke_script.rb in tracksperanto-3.3.7 vs lib/import/nuke_script.rb in tracksperanto-3.3.8

- old
+ new

@@ -3,30 +3,31 @@ require 'tickly' class Tracksperanto::Import::NukeScript < Tracksperanto::Import::Base def self.human_name - "Nuke .nk script file with Tracker, Reconcile3D, PlanarTracker and CornerPin nodes" + "Nuke .nk script file with Tracker, Reconcile3D, Transform2D, PlanarTracker and CornerPin nodes" end def self.distinct_file_ext ".nk" end def self.known_snags - 'The only supported nodes that we can extract tracks from are Reconcile3D,' - + ' PlanarTracker and Tracker (supported Nuke versions are 5, 6 and 7)' + "The only supported nodes that we can extract tracks from are Transform2D, Reconcile3D, " + + "PlanarTracker and Tracker (supported Nuke versions are 5, 6 and 7)" end def each parser = Tickly::NodeProcessor.new parser.add_node_handler_class(Tracker3) parser.add_node_handler_class(Reconcile3D) parser.add_node_handler_class(PlanarTracker1_0) parser.add_node_handler_class(PlanarTracker) parser.add_node_handler_class(Tracker4) parser.add_node_handler_class(CornerPin2D) + parser.add_node_handler_class(Transform) parser.parse(@io) do | node | node.trackers.each do | t | report_progress("Scavenging tracker #{t.name}") yield t @@ -85,9 +86,15 @@ end class Reconcile3D < Tracker3 def point_channels %w( output) + end + end + + class Transform < Tracker3 + def point_channels + %w( translate center ) end end # Planar tracker in Nuke 6 class PlanarTracker1_0 < Tracker3