I used Blender today to create a turntable animation for very simple model that I made and intend to 3D print. I've found that such animations are very effective for communicating the shape of a model and I'd like to be able to rapidly generate ones like the one below.
I'm very comfortable with Python, but haven't used Blender's Python scripting API much as yet, and there's a significant learning curve to Blender itself, let alone using it programmatically, and I don't want to assume I'm on the right track.
The process I used today, and the one imagine trying to automate is something like so:
- Create new blend-file
- Remove default cube
- Import an STL
- It would be great if I could somehow specify this via the command line, as that would potentially let me run batches or tie it to another application
- Set STL's origin to be its center of volume
- Set a camera to track the STL's origin
- Auto-fit a camera view to the object.
- I have no idea how to do this, and when I did my render today, I just toyed with the camera position and properties until it was about right. It was... very finicky.
- Create/move a light to some position, probably camera high and left.
- Insert keyframes at frames 0 and 250 to rotate the object
- Total frames should probably another command line parameter, if possible.
- Trigger a render
In summary:
- Is this a rational process to create this animation, or is there something much easier?
- Assuming these steps make sense, what is a good way that I can automate them? Python? Something else?
Related:
This is arguably a duplicate of python - Auto turntable animation, but I'm trying to ask both about the process and whether Python or something else (!) is the right way to make it minimally painful.
