Skip to main content

All Questions

Tagged with
0 votes
0 answers
38 views

How to Create a Custom Camera Mode in Blender?

Cameras in Blender offer many parameters, such as focal length, depth of field (DOF), etc. There are also settings to switch between perspective, orthographic, or panoramic mode. Let’s say I want to ...
yisharu's user avatar
1 vote
1 answer
31 views

Rendering Different Images as a Cube Moves Every 10 Frames

I created a cube that moves every 10 frames. I’m trying to capture an image from the camera at each step. However, all the rendered images are based on the first frame. Here is my Python code: ...
user1443858's user avatar
4 votes
1 answer
72 views

How to get the orientation normal vector to align the camera?

Suppose I have a plane oriented in a specific direction. I want to align the camera to match the plane's direction for rendering, and I would like to achieve this using Python.
Karan's user avatar
  • 2,681
0 votes
0 answers
40 views

is it correct to set the camera intrinsics in this way?

I have a 3x3 matrix inside a calibration file that has the intrinsics of my real room inside it. We will call them fx fy cx cy. I would like to know if the code I have written is correct, as I am not ...
wiseme's user avatar
  • 1
2 votes
1 answer
37 views

Python: canvas-flip action is merged with the next user action in undo history

I wrote a simple add-on to enable canvas flipping in Blender (for Grease Pencil) with a hotkey, as well as a menu button. All it does is multiply the camera's local X scale by -1: ...
Latin1's user avatar
  • 75
0 votes
1 answer
29 views

Camera pose not updated for render

I created a script to render images with different came poses with Blender 4.0. But I always get the same image, the camera pose is not updated. I tried with the python interpreter, blender script tab,...
Apo's user avatar
  • 33
1 vote
1 answer
47 views

bpy: Defining object location in view coordinates using the projection matrix

I want to scatter multiple objects inside the view frustum of the active camera. In theory it is easy: Generate a random 3D Vector with values in [0..1] Read the projection and camera matrices of the ...
Ismir Egal's user avatar
0 votes
0 answers
49 views

Automatically Camera animation (jumping from one object to another)

I was wondering if there is a script or automation for the Blender Cam to automatically jump from one object to the next. The background is as follows: I am in the process of creating a photo show in ...
Benjamin's user avatar
0 votes
0 answers
96 views

Camera rotating around the object in a regular way with python blender

I want a camera that rotates regularly around the object I have taken with the blender package in python, and I want to take the image of the three-dimensional object from certain angles at the time ...
Serhat Bilal's user avatar
0 votes
2 answers
126 views

Adding a camera in front of an object based on xyz rotation (Euler to Spherical conversion)

About the script: I would like to add a camera in front of a selected object. The front of the object is based on a calculation using a pre-defined polarangle, azimuthal angle and distance. The ...
Sneider's user avatar
0 votes
0 answers
245 views

How to set the camera distortion by script?

I have: A 3D point cloud indoor scene; camera_poses.npy: records the camera pose changes, e.g. (x,y,z,qx,qy,qz,qw) camera_info.txt: stores the parameters of the real camera, the contents are as ...
Dongze Yang's user avatar
0 votes
1 answer
93 views

Blender scripting loop not working

I'm trying to set the camera to always look the origin of the scene and then I want to rotate the camera about the origin to get a new camera pose (i.e. rotate the empty point the camera is looking at ...
analysis1's user avatar
0 votes
0 answers
79 views

Calculating Area of Object as Rendered from the Camera

I am trying to build a program to optimise the position of a camera such that the object in question fills the render. The bounding box is inadequate for renders from 45 degree angles, for instance. I ...
Jack Rolph's user avatar
0 votes
0 answers
201 views

Changing camera location in script and rendering - problem with keyframes resetting the location before render

What I do is that I change the camera location in Python API and render a new view. Here is an example: ...
Hito's user avatar
  • 217
0 votes
1 answer
57 views

Acquiring camera position in script in junction with "Lock Interface" during rendering animation

within a Python script resp. a frame change handler I need to get the current camera position and do some calculations with it. I do this as follows: camera_object = bpy.context.scene.objects["...
Mario's user avatar
  • 89

15 30 50 per page
1
2 3 4 5