title: How to add an animation in SceneKit on request
body: <p>If you can help me add this animation to the scene or if you know how to add an animation to the scene, it would be much appreciated.</p>
  
  <p>Code:</p>
  
  <pre><code>let BallScene = SCNScene(named: "art.scnassets/Ball.dae")!
  let ManScene = SCNScene(named: "art.scnassets/Genric_Simplifiyed9.dae")!
  let Man: SCNNode = ManScene.rootNode.childNodeWithName("Bob_001", recursively: true)!
  Man.position = SCNVector3(x: 0, y: 0, z: 5)
  BallScene.rootNode.addChildNode(Man)
  
  let Animation: CAAnimation
  let AnimationUrl: NSURL = NSBundle.mainBundle().URLForResource("art.scnassets/Genric_Simplifiyed9.dae", withExtension: "dae")!
  let sceneSource = SCNSceneSource(URL: AnimationUrl, options: [SCNSceneSourceAnimationImportPolicyKey : SCNSceneSourceAnimationImportPolicyDoNotPlay])
  
  sceneSource.addAnimation(attackAnimation, forKey: "attack”)
  </code></pre>