Scenekit start/stop Skeletal animation of imported USDZ

47 Views Asked by At

Sorry,

first time I have this need and unable to find any valuable help so far.

Scenekit preview of the USDZ in Xcode is able to play the animation and the scene graph is below

enter image description here

I usualy have anymations with no bones and I do play them with something like

let player = backgroundNode.childNode(withName: "Geom", recursively: true)!.animationPlayer(forKey: "transform")
player?.stop()

DispatchQueue.main.asyncAfter(deadline: DispatchTime.now() + .milliseconds(0), execute: {player?.play()})

What I use to start and stop the Skeletal animation?

What is the name of the animation in this case?

What is the node name I have to choose which contains the animation?

Thank you.

0

There are 0 best solutions below