old_contents: from animatedSnap3D import *
  import nuke
  # Add menu items under the Axis Menu
  try:
      m = nuke.menu('Axis').findItem('Snap')
      m.addSeparator()
      m.addCommand('Match position - ANIMATED', 'animatedSnap3D.translateThisNodeToPointsAnimated()')
      m.addCommand('Match position, orientation - ANIMATED', 'animatedSnap3D.translateRotateThisNodeToPointsAnimated()')
      m.addCommand('Match position, orientation, scale - ANIMATED', 'animatedSnap3D.translateRotateScaleThisNodeToPointsAnimated()')
  except:
      pass
new_contents: #!/usr/bin/env python
  """
  
  Animated Snap 3D
  ================
  
  An extension to Nuke's "snap" options for animated 3D objects. Based on a
  selection of vertices, this allows for objects to match the position, rotation
  and scale of that selection over a specified frame range.
  
  ## Public Functions
  
      run()
          Adds the animatedSnap3D functions to the Axis Snap Menu
  
  ## License
  
  The MIT License (MIT)
  
  animatedSnap3D
  Copyright (c) 2011 Ivan Busquets
  
  Permission is hereby granted, free of charge, to any person obtaining a copy
  of this software and associated documentation files (the "Software"), to deal
  in the Software without restriction, including without limitation the rights
  to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
  copies of the Software, and to permit persons to whom the Software is
  furnished to do so, subject to the following conditions:
  
  The above copyright notice and this permission notice shall be included in all
  copies or substantial portions of the Software.
  
  THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
  IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
  FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
  AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
  LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
  OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
  SOFTWARE.
  
  """
  
  # ==============================================================================
  # IMPORTS
  # ==============================================================================
  
  # Nuke Imports
  import nuke
  
  # animatedSnap3D Imports
  from animatedSnap3D import (
      translateThisNodeToPointsAnimated,
      translateRotateThisNodeToPointsAnimated,
      translateRotateScaleThisNodeToPointsAnimated
  )
  
  # ==============================================================================
  # GLOBALS
  # ==============================================================================
  
  __author__ = "Ivan Busquets"
  __copyright__ = "Copyright 2011, Ivan Busquets"
  __credits__ = ["Ivan Busquets", "Sean Wallitsch", ]
  __license__ = "MIT"
  __version__ = "1.1"
  __maintainer__ = "Sean Wallitsch"
  __email__ = "sean@grenadehop.com"
  __status__ = "Development"
  
  # ==============================================================================
  # EXPORTS
  # ==============================================================================
  
  __all__ = [
      'run'
      'translateThisNodeToPointsAnimated',
      'translateRotateThisNodeToPointsAnimated',
      'translateRotateScaleThisNodeToPointsAnimated'
  ]
  
  # ==============================================================================
  # PUBLIC FUNCTIONS
  # ==============================================================================
  
  
  def run():
      # Add menu items under the Axis Menu
      axis_menu = nuke.menu('Axis').findItem('Snap')
      axis_menu.addSeparator()
      axis_menu.addCommand(
          'Match position - Animated',
          'animatedSnap3D.translateThisNodeToPointsAnimated()'
      )
      axis_menu.addCommand(
          'Match position, orientation - Animated',
          'animatedSnap3D.translateRotateThisNodeToPointsAnimated()'
      )
      axis_menu.addCommand(
          'Match position, orientation, scale - Animated',
          'animatedSnap3D.translateRotateScaleThisNodeToPointsAnimated()'
      )
  
subject: Refactor of __init__ for style