Linked Questions

0
votes
0answers
266 views

world_to_camera_view - returns same result if cube is rotated, not if camera is rotated [duplicate]

I'm expermenting with world_to_camera_view bpy_extras.object_utils.world_to_camera_view(scene, camera, co) Lets say I create a new blender file. I enter every ...
0
votes
2answers
252 views

How to get 3D points of a Mesh in world space coordinates? [duplicate]

I have a blender file with this scene (below) seen from the camera. Now I need to get the 3D points of the mesh (the doughnut) in world space according to the camera perspective, pragmatically. ...
2
votes
1answer
109 views

Extracting vertices data after transformations [duplicate]

I'm using few rotations and scale changes in a model and then export the location of the vertices after the change, but when I do so, the vertices extracted are those of before the transformations and ...
4
votes
2answers
3k views

Export model transformation matrix

I am a very basic blender user, I need to know if there is a add-on or a built in function that could export selected objects model transformation matrix (the matrix that contains the models scaling, ...
4
votes
1answer
573 views

I don't know what is wrong with my python script

I am trying to generate a bunch of points from a bezier curve. I am converting my curve to mesh then gather vertices then delete the mesh as discussed by helpful contributors in the past. But the ...
1
vote
1answer
2k views

Calculate angle between two vertices of two different objects

I have a scene in which there are two objects, a sphere and a pole: I would like to calculate the angle between two vertices: one belonging to the first object and the second belonging to the second ...
1
vote
1answer
2k views

Get points of Bezier Curve in coordinate space of the scene

Sorry if the title is confusing, I wasn't sure how to best describe what I am trying to do. Basically, I'm trying to create Bezier Curves that "grow" off of each other. For example, I would make one ...
1
vote
1answer
1k views

Bounding box coordinates taking into consideration (but not applying) rotation

I am trying to make a script that will determine the exact coordinates of an object's bounding box in the render. (I later want to limit the rendered space to that area.) So far I managed to get the ...
1
vote
1answer
664 views

Move one pose bone to the location of another in the same armature

Could someone help me get out of the starting blocks I suspect I'm making this harder than it needs to be. with python Lets say in pose mode I have bone A at location (0.00,0.00,2.00) world space ...
0
votes
1answer
418 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 ...
4
votes
1answer
93 views

How can I show the vertex positions in viewport?

I want to show some Info in the viewport something like vertex indices you can see select a vertex and press N to see vertex position but it's hard. so I liked to write a script to show the vertex ...
0
votes
1answer
90 views

How to snap the 3d cursor to a specific vertex?

I need to snap the 3D cursor to a specific vertex based on it's ID (to create an empty at that location) and I'm having trouble finding a simple way to achieve that. Anyone got some pointers?
1
vote
1answer
32 views

Trying to understand coordinate spaces in python

In a sense I have "solved" my original problem but I don't understand why/how its solved. I have a script that generates a number of objects and then attempts to create straight lines via a ...