Sha256: 0e71b9491772ade688c06a0518f33cbad8e28298b1f7c572ccd75b620ce68805

Contents?: true

Size: 684 Bytes

Versions: 5

Compression:

Stored size: 684 Bytes

Contents

# Export for Nuke's CameraTracker node. Same format as Shake Text
# except that all trackers have to be called "usertrack0" to "usertrackN"
require_relative "shake_text"

class Tracksperanto::Export::NukeCameraUsertracks < Tracksperanto::Export::ShakeText
  
  def self.desc_and_extension
    "nuke_cam_trk_autotracks.txt"
  end
  
  def self.human_name
    "Nuke CameraTracker node autotracks (enable import/export in the Tracking tab)"
  end
  
  def start_export(w, h)
    super
    @counter = 0
  end
  
  NAMING = "autotrack%d" # change to "usertrack%d" if user tracks are needed
  def start_tracker_segment(tracker_name)
    super(NAMING % @counter)
    @counter += 1
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
tracksperanto-4.2.0 lib/export/nuke_cam_tk_usertracks.rb
tracksperanto-4.1.3 lib/export/nuke_cam_tk_usertracks.rb
tracksperanto-4.1.2 lib/export/nuke_cam_tk_usertracks.rb
tracksperanto-4.1.0 lib/export/nuke_cam_tk_usertracks.rb
tracksperanto-4.0.0 lib/export/nuke_cam_tk_usertracks.rb