Scripting animation, entity inheritance parent?

I’m completely new to playcanvas, the parent entity is confusing to me …

I’m ideally wanting to start an animation every few seconds with and .fbx from 3ds Max.

I just have a keyframed animation setup and exported model into playcanvas.

the animation imports as a .json file, not sure if thats normal? If so it plays fine and loops fine in the editor, but I want to get familiar with PC scripting and I’m not sure what parent the animation.play comes from?
I tried:

entity.animation.play(“animation”, 2);
this.animation.play …
modelName.animation.play…

pc.Animation.Play… .

I looked at example projects and still am not sure, THANKS!

Steve

nevermind I got it…

this.entity.animation.play(“anim_name”,1);