Skip to main content

All Questions

Tagged with
1 vote
0 answers
325 views

How to properly combine Rotation Quaternion with Matrix for viewport/RegionView3D manipulation?

(Copy and pasted it from another place since I wasnt getting any replies) Hi, I am working on an addon that uses external application's touch gesture to send information to a socket, which then is ...
MercuryRising's user avatar
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 ...
Danyang.Yi's user avatar
1 vote
2 answers
322 views

Text in 3D view linked to an object

I'm looking for a way to display 2D text based on an object's position. I'm not an expert in blender python, so I couldn't figure out by myself how the Measureit Addon does it. It's very similar to ...
Juan Gonzalez's user avatar
0 votes
1 answer
81 views

Why can't vertex indices be sorted by Z_VIEW in blender python?

Run the following code: import bpy bpy.ops.object.mode_set(mode='EDIT') bpy.ops.mesh.sort_elements(type='VIEW_ZAXIS', elements={'EDGE'}) python console prompt ...
tallien1212's user avatar
1 vote
1 answer
649 views

UV Project From View script fails when using bpy.ops.view3d.view_axis()

I've been trying to make a small python script that among other things project unwraps UVs using a specific axis and projection type and it fails to project the UVs at the 3D View's manipulated camera ...
Takanu's user avatar
  • 197
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 ...
sirrus's user avatar
  • 169
1 vote
2 answers
591 views

What's the value of sensor width for a default 3D View?

I'd like to calculate FOV in degrees of the default 3D Viewport (not a camera). According to this link the formula requires me to provide sensor width and focal length. Focal length can be seen in the ...
Presto's user avatar
  • 83
1 vote
0 answers
911 views

Visualizing a 4D object in 3D space using Blender

Out of curiosity i am trying to visualize a 4D object in 3D space in Blender. I got the idea from and used some parts of the work done by Oleg Rybkin which can be found here: https://github.com/...
Niek Kort's user avatar
2 votes
1 answer
137 views

What is the performance cost of adding a SpaceView3D draw callback?

In the conversation in comments to Driver based on shading types/ change boolean when switching shading types an argument has been made that the draw callback is called very frequently, and therefore ...
Markus von Broady's user avatar
1 vote
1 answer
184 views

How do I access the shading type in a message bus handler for Viewport Shading Mode changes?

I'm trying to register a msgbus handler for a callback that is called when the View3D area's shading mode changes. I know from testing with this class that ...
Marty Fouts's user avatar
  • 33.3k
3 votes
1 answer
313 views

How do I scale object location without scaling the object itself (Transform affect only location)

I'm trying to write a part of a script that would scale object locations away from the 3d cursor (so the object size itself wouldn't change, but the object would move away from the 3d cursor). It ...
tw9245's user avatar
  • 31
4 votes
1 answer
202 views

How do I change viewport alignment of newly created objects with a python command?

I'm making a custom pie menu with a pie editor addon and wanted to have some buttons with options that will let me change the default alignment of newly created objects from "world", "...
Chingiz Jumagulov's user avatar
0 votes
1 answer
122 views

How to add images to a deck of cards in an automated way?

I am adding png to material for each Plane Object, problem is I have 1000 of these plane objects for 1000 images to import for each one. Is there an addons or script I could use for that please ...
kaiji San's user avatar
0 votes
1 answer
112 views

How to place an object higher on the plane via Python?

I need to make an image in which there are two objects when one of them is located regularly on the plane but the second is actually a bit on top of the first one when they do not touch each other. It ...
DaveNuk's user avatar
1 vote
1 answer
829 views

Combine single wavefront .obj objects into an animation sequence

Given many .obj files that represent the 3D pose estimation for each frame of a clip, how to combine the .obj files to form an ...
Bendemann's user avatar

15 30 50 per page
1
3 4
5
6 7
16