lib/middleware/slipper.rb in tracksperanto-1.1.1 vs lib/middleware/slipper.rb in tracksperanto-1.2.0
- old
+ new
@@ -1,7 +1,10 @@
+# Slips the keyframe positions by a specific integer amount of frames, positive values slip forward (later in time). Useful if you just edited some stuff onto
+# the beginning if your sequence and need to extend your tracks.
class Tracksperanto::Middleware::Slipper < Tracksperanto::Middleware::Base
DEFAULT_SLIP = 0
attr_accessor :slip
+ cast_to_int :slip
def slip
@slip.to_i || DEFAULT_SLIP
end
\ No newline at end of file