Linked Questions

1
vote
1answer
235 views

AttributeError: 'Mesh' object has no attribute 'view_frame'

I am trying to get the pixel coordinates of the object in the rendered image in blender using the How to find image coordinates of the rendered vertex? But I get the error AttributeError: 'Mesh' ...
1
vote
0answers
108 views

How to get objects and mesh object vertices from camera view with Python in Blender 2.8 [duplicate]

What I want to do I want to change the power of only the light object visible in the camera view. I want to remove vertices to mesh objects in visible in the camera view. Not remove mesh objects, ...
4
votes
1answer
603 views

Blender scripting: Circle Selectiong in the “3D View”

In Blender2.74, I want to circle-select the vertices in the "3D View", using this: circle_select(x = 300, y = 400, radius = 30). I found this question. So I know ...
2
votes
1answer
965 views

blender camera from 3x4 matrix

In computer vision, the transformation from 3D world coordinates to pixel coordinates is often represented by a 3x4 (3 rows by 4 cols) matrix P as detailed below. Given P I need code to return a ...
19
votes
3answers
10k views

3x4 camera matrix from blender camera

In computer vision, the transformation from 3D world coordinates to pixel coordinates is often represented by a 3x4 (3 rows by 4 cols) matrix P as detailed below. Given a camera in Blender, I need ...
2
votes
1answer
162 views

using python to find object with the pixel information from the render

I wanted to know if anyone had to find a object by only knowing the pixel (x: 300, y: 300)information in a final render say like (essentially using camera view) Is there a way to find the correct ...
0
votes
1answer
154 views

Compute object's foreground mask in screen coordinates

For a research project I am using Blender's Python API to generate some simple random scenes. In addition to the generated renders, I need to acquire a 'foreground mask' in screen (image) coordinates ...
1
vote
0answers
474 views

RayCasting from Perspective Camera View into 3D Scene?

I am using Templates->Python->Operator Modal View3D Raycast template script which uses event.mouse_region_x, event.mouse_region_y to create raycasts into the ...
2
votes
2answers
1k views

Python: Obtaining Object Contour Pixels

I would like to obtain the pixel coordinates of an object's outline in the currently-rendered scene, using the bpy module. I found this, which is related, but I'm still not sure how to do it. Has ...
0
votes
0answers
60 views

How to calculate rendered bone length during animation

I'm looking into the feasibility of creating a script able to export a blender animation to a JSON to be used by 2D Spine animation software. This would be based on Blender-JSON-Exporter. The ...
0
votes
1answer
470 views

How to map/project bone coordinates to camera coordinates sytem/view?

I need the bone-head coordinates to be mapped on to the camera view. Actual scenario is to obtain the 3D coordinates of bone/joint. This is how I do it now. ...
4
votes
1answer
1k views

Alternative to redraw_timer()

I have a script whose goal is to find all the visible vertices from the camera view. The simplest solution should work as follows: Go Into Camera View Update the view with ...
2
votes
0answers
642 views

How to find if the vertex of an object is occluded by another vertex/face in front of it from a given viewpoint?

I can use the recipes on this page: How to find image coordinates of the rendered vertex?. But is there a way to know if a point is being occluded by some point/face in front of it from the viewpoint ...
0
votes
0answers
833 views

How to project a point from 3D to 2D in blender?

I know how to obtain the 4x4 projection matrix of the camera in Blender, but it seems its format is different from the standard camera projection matrices. I would appreciate it if someone explains ...
3
votes
1answer
1k views

Python: Check if vertex is on camera field of view [duplicate]

Suppose I have the following camera perspective. As you can see some of the Cube vertices are visible from the camera, others are not. Is there a way from python to detect if a certain vertex is in ...

15 30 50 per page