All Questions
23
questions
0
votes
0
answers
12
views
Confusing results when trying to align viewport to camera with Python
I have a scene with a 40mm camera, for a reference I put some boxes that visually touch camera region borders. Viewport is close to 16:9 — just like the scene format.
Then I disable the camera view ...
0
votes
0
answers
45
views
How to calculate ortho_scale of a viewport?
There is an addon that allows you to save the current viewport to the camera.
But the addon only works in perspective mode.
For orthographic mode, you need to calculate the ortho_scale of the viewport ...
1
vote
1
answer
85
views
How to get camera view bounds on 2D plane, not Viewport limits
I'm attempting to write a script that will place an object on a "terrain" plane, within the FOV of an existing camera which will be somewhere above that plane, pointing downwards, but with ...
1
vote
0
answers
295
views
Converting a weak perspective Camera (SMPL) to a orthographic/perspective projection model
I am currently trying to import and parse outputs from the SMPL/VIBE model into Blender. The goal is to overlay the predicted mesh/armature on the original image and render it in blender similar to ...
2
votes
0
answers
408
views
3D world to 2D image transformation with equidistant camera model
I'm currently implementing a simulation, where a 3D point needs to be transformed to a fisheye image with the equivalent of Blenders 'PANO' camera and the equidistant camera model. Does anyone know ...
0
votes
1
answer
282
views
How to project 3D point into camera under the influence of focal length and use Python?
The manual introduces the world_to_camera_View maps 3D to 2D, but ignores the influence of focal length parameters. Is there a method with focal length parameters in blender API? Is it possible to ...
3
votes
1
answer
2k
views
Align active camera to view using python
To align active camera to match the current view I could simply pan, zoom or rotate the view. Select active camera from outliner then hit Ctrl + Alt + Numpad 0. I only wonder, is there a way to write ...
0
votes
1
answer
230
views
How to constraint object to perspective user viewport (Not render camera)
I would like to constraint an object (cube) to the viewport camera, so it will be always in user's field of view.
Is it possible with constraints (I didn't find any way) ?
I also tried with python to ...
1
vote
1
answer
220
views
finding the pivot of the camera using python
I'm learning how the 3d viewport and the camera objects rotate around the pivot point (I'm not sure this is the correct lingo, but for the sake of the question I will use it).
I have been searching a ...
1
vote
0
answers
236
views
What section of a sphere does the camera 'see'? Intersection of camera viewport and sphere
Blender 2.8
Scene: A sphere and a camera.
The camera can be moved, but it will always show a part of the sphere. Later on, textures should be loaded onto the sphere BUT ONLY for the part of the ...
1
vote
0
answers
28
views
Question Related to Python and Camera View
I've recently been developing a rig that uses Python for UI buttons, etc. I was wondering how to make a button that would put me into a face rig camera. (something that would only be used for ...
1
vote
1
answer
365
views
How to exit from the camera view?
With this code fragment, I can enter the camera view correctly, but I'd like to be able to get out.
...
0
votes
1
answer
661
views
How do I "Lock Camera to View" using Python?
How do check the box labeled "Lock Camera to View" using Python?
There is a "lock_camera" property, but I don't know how to navigate to the object that has it to set it.
2
votes
0
answers
758
views
Operator camera_to_view_selected() doesn't work as expected
Gist:
Why bpy.ops.view3d.camera_to_view_selected() doesn't work from a Class method or even a global function, when it's called from any regular method within a ...
0
votes
1
answer
641
views
How to add 'Properties > Camera > Focal Length' to 3D View Panel?
I would like to add the prop from Properties > Camera > Focal Length to a panel in the 3D View, but I can't seem to get it right.
...