All Questions
107
questions
0
votes
0
answers
13
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 ...
2
votes
1
answer
28
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:
...
0
votes
1
answer
19
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,...
1
vote
0
answers
16
views
How to add specific camera view using numbers to the script?
I currently have this script, and I am trying to add an upper right view of my character to the scene but it's only looking at the feet of the character. Ideally, the upper right camera view would be ...
1
vote
1
answer
28
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 ...
0
votes
0
answers
41
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 ...
0
votes
0
answers
80
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 ...
0
votes
2
answers
94
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 ...
0
votes
0
answers
18
views
Create a skewed (non-physical) camera with a custom matrix
I'm creating a stylized world where the vertical dimension is distorted relative to the forward dimension.
Right now in script, I'm doing :
...
2
votes
1
answer
75
views
How can i center the panning of the camera perspective view ,respectively to the viewport?(SOLVED) [duplicate]
(SOLVED)
Solution: Press home key when in camera view.
=========================================================
im in camera perspective, (numpad 0 view) is there a way to center the camerawindow to ...
0
votes
0
answers
209
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 ...
0
votes
1
answer
78
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 ...
0
votes
0
answers
68
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 ...
1
vote
1
answer
127
views
How to project the actual model geomtry through a camera view into a texture?
I have a building model too detailed for my purposes. I basically have been taking screenshots of the model and using the screenshot as a texture for each side of the building. Is there a less hacky ...
0
votes
1
answer
108
views
Get camera location/angle from viewport in scripting
Blender 3.3, I'm going to use scripting to adjust the location of my camera for a render so I'd like to try out a few camera positions and angles. I want to scroll around a viewport to get the right ...