I’ve VERY new to Blender, so please bear with me as I’m trying to learn this.
What I want to do is have a 3D model that has two animations – think of a garbage can that has an open lid animation and a close lid animation. When an object collides with the can, I want to run the open lid animation and if the object is released or withdrawn, run the close lid animation.
At least I think this is how you are supposed to do it.
I can use Blender to make a cube that moves, export that, and import it into Reality Composer Pro and run the single animation.
What I want to do is make 2 separate animations on the object, in Blender, and be able to reference those animations in Swift using cube.availableAnimations
where cube
is the 3D model I made in Blender.
I hope that makes sense. I’m ok with the Swift and RealityView side of things, now. Its Blender that’s confusing me.
I opened Blender and switched to the Animations tab and then opened the Actions view. I found a video that showed how to add more actions so I made one action have the cube move forward (2 keyframes) and then in another action have the cube move back (again, 2 keyframes).
After exporting and converting to USDZ, the cube moves forward and back as if its a single animation. Looking at the list of animations in RealityView/Swift, it reads as having just one animation.
I assume I’m not actually creating separate animations. Anyone familiar with Blender knows its a rich, but complex app and I don’t see where I’ve gone wrong.
Peter Ent is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.