Play Animation Clips Not Attached to Parent?

How can an animation clip be played that is not attached to the parent object of the script that plays it?

You can do GameObject.Find(“YourGameObject”).animation.Play(“animationName”);

Or better you could cache your object

private GameObject myAnimatedObject;

void Start()
{
   myAnimatedObject = GameObject.Find("myObjectToAnimate");
}

void AnimateExternalObject()
{
    myAnimatedObject.animation.Play("animationName");
}

Hope this helps.