Please give me a script example of how to make camera rotate around object and take pictures from different angles
-
1$\begingroup$ Have you tried anything and if so what failed? $\endgroup$– JackdawCommented Jul 30, 2019 at 16:09
-
$\begingroup$ blender.stackexchange.com/questions/142076/… $\endgroup$– FFellerCommented Jul 30, 2019 at 16:15
-
$\begingroup$ No, I have no idea how to do it @Jackdaw $\endgroup$– cxntCommented Jul 30, 2019 at 16:17
-
$\begingroup$ Probably easier to setup the camera/scene beforehand and just trigger the animation/rendering by script. youtube.com/watch?v=2r0KsLYr3wA $\endgroup$– Robert GützkowCommented Jul 30, 2019 at 17:53
-
$\begingroup$ Or blender.stackexchange.com/questions/3476/… for rotating the camera instead of the object. This seems like a suitable approach that could be replicated by a script. $\endgroup$– Robert GützkowCommented Jul 30, 2019 at 18:04
1 Answer
You don't need a script.
1) Set up your scene.
2) Position your camera for the first image.
3) Set a keyframe for the camera location and rotation.
4) Move to the next frame in the timeline.
5) Position the camera for the next image.
6) Set key frames as before.
7) Repeat until you have set up all the pictures you need.
8) In the animation settings, set it to create separate images (eg PNG).
9) Set the start and end frame numbers for the animation.
10) Start rendering the animation. Blender will then create a still image for each of the frames you have set up.
-
$\begingroup$ Yeh, that's what I want, but I need to script it, so I can reuse it $\endgroup$– cxntCommented Aug 1, 2019 at 12:59