Class: Tracksperanto::Export::NukeCameraUsertracks

Inherits:
ShakeText
  • Object
show all
Defined in:
lib/export/nuke_cam_tk_usertracks.rb

Constant Summary collapse

NAMING =

change to “usertrack%d” if user tracks are needed

"autotrack%d"

Constants inherited from ShakeText

ShakeText::POSTAMBLE, ShakeText::PREAMBLE, ShakeText::TEMPLATE

Instance Attribute Summary

Attributes inherited from Base

#io

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from ShakeText

#end_tracker_segment, #export_point

Methods inherited from Base

#end_export, #end_tracker_segment, #export_point, inherited, #initialize

Methods included from ConstName

#const_name, included

Methods included from SimpleExport

#just_export

Constructor Details

This class inherits a constructor from Tracksperanto::Export::Base

Class Method Details

.desc_and_extensionObject



8
9
10
# File 'lib/export/nuke_cam_tk_usertracks.rb', line 8

def self.desc_and_extension
  "nuke_cam_trk_autotracks.txt"
end

.human_nameObject



12
13
14
# File 'lib/export/nuke_cam_tk_usertracks.rb', line 12

def self.human_name
  "Nuke CameraTracker node autotracks (enable import/export in the Tracking tab)"
end

Instance Method Details

#start_export(w, h) ⇒ Object



16
17
18
19
# File 'lib/export/nuke_cam_tk_usertracks.rb', line 16

def start_export(w, h)
  super
  @counter = 0
end

#start_tracker_segment(tracker_name) ⇒ Object



22
23
24
25
# File 'lib/export/nuke_cam_tk_usertracks.rb', line 22

def start_tracker_segment(tracker_name)
  super(NAMING % @counter)
  @counter += 1
end