3,158 questions
-3
votes
0
answers
84
views
What is id_data.keys() and how to prevent IDPropertyGroup change size during iteration? [closed]
I'm trying to revive an old blender add-on for personal use, all fixes were successful so far, but I stumbled upon this error:
for prop in o.id_data.keys():
RuntimeError:IDPropertyGroup changed size ...
0
votes
1
answer
101
views
Populate a blender PointCloud via python API with numpy data
I can create a PointCloud object in the blender python API via
pc_data = bpy.data.pointclouds.new(name)
pc_obj = bpy.data.objects.new(name, pc_data)
bpy.context.collection.objects.link(pc_obj)
...
0
votes
0
answers
67
views
How to plot a 3d turntable sequence in blender
The idea is to have 62 points along a 3d sphere in a "net" formation. (extra points if the formation can be changed in code) From each point, an image is taken towards the sphere origin. ...
0
votes
0
answers
63
views
Why is my shader's linear map range function not smooth?
I am trying to port a Blender shader to WGSL. My plan is to port over every node I need as a WGSL function (unless the node already has an equivalent in WGSL). Currently, I am trying to create an ...
0
votes
0
answers
130
views
Integrating a text input to blender
I am implementing an .bpy for an input module to blender using pycharm and am running into an issue with the .bpy not installing properly. I'll be bashing this for a bit, but wanted to start a thread ...
0
votes
1
answer
84
views
GLB model appears deformed (crushed) in Three.js, but animations and skeleton load correctly
I'm working on a Three.js game using Electron, and I'm running into a strange issue when importing a GLB model exported from Blender.
When I load my model in Three.js, the mesh appears crushed on ...
0
votes
0
answers
41
views
Rigid clothes and animation Blender
I'm a game developer and have already designed characters for my game and also designed clothing (the clothing is rigid, not fabric).
But my problem is with attaching the object to the skeleton. ...
0
votes
0
answers
35
views
How to manipulate eyeglass frame parts (bridge, temples, lenses) as unified geometric units in Blender via Python API?
I'm developing an iOS app that communicates with a Blender server to allow real-time manipulation of 3D eyeglass frames. Currently, I can only manipulate individual vertices, but I need to manipulate ...
0
votes
0
answers
50
views
BVH animation skinning
I am fairly new to Blender and retargeting methods, however I am looking for a way to skin bvh declared motion.
I imported a skin and fbx format animation from Mixamo, which means that armatures in ...
0
votes
0
answers
65
views
Inconsistent Object/Mesh Rotations in ThreeJS
I am encountering rotation issues in THREEJS where my object (From blender, gltf.scene) totations are extremely unpredictable and inconsistent. I want my object to spin like a ballerina when the mouse ...
1
vote
0
answers
51
views
GLTF import weird data
I am trying to make my own gltf importer i so I get the indices and vertices from the mesh data but the indices are linking triangles that makes no sense for example the default cube in gltf exported ...
0
votes
0
answers
193
views
using blender as a python module with pylance
I'm trying to set up VSCode with Pylance and bpy for the purpose of making a Blender plugin, since I have very little knowledge of Python I think LSP support would help quite a bit.
I have cloned ...
0
votes
0
answers
157
views
How do I embed this globe into my NextJS Project
I've followed this tutorial: Youtube Video and built this: Image
I want the globe in my blender project to be embedded into my next-js project. I followed the tutorial from youtube, and in my nextjs ...
0
votes
0
answers
42
views
How to engrave custom text on a curved surface (eyeglass temple) using Python in Blender?
I'm creating a Blender add-on that automatically engraves custom text (like a name) on the side of an eyeglass temple (imported as an STL). The temple mesh is slightly curved and also contains a pre-...
0
votes
1
answer
70
views
How can I move a collision box with an imported animation from Blender?
So I need to move this collision box along with the animated mesh.
The model and collision box, the inspector menu for the model.
I have looked online but nothing I do works, am I missing something?
...
0
votes
0
answers
27
views
Filtering 2D Coordinates of Visible Emptys in Blender, Excluding Those Obstructed by Multiple Objects
I'm using Blender's Python API to get the 2D coordinates of all EMPTYS that are "visible" in a rendered 2D image (i.e., within the camera's view). I have a working script that retrieves the ...
1
vote
1
answer
172
views
Why can't get the correct point clouds from depth map?
My depth map is generated by blender.Here are the relevant settings of blender.
This is my main scene.
Here is the depth map:
My code here:
import cv2
import numpy as np
import open3d as o3d
f_x = ...
1
vote
1
answer
113
views
GLB Model not displaying on Three JS webpage
The scene, the mesh is all showing up on the website. I've moved the glb literally next to the main.ts file so there's no directory issues. But nothing shows up.
The filename is coffeeshop.glb. This ...
2
votes
1
answer
93
views
Alignment is wrong when trying to get offset while parsing Blender file v4.4
I asked this one also on the dev talk and blender stack exchange, but seems none of these two is the appropriate place to post it.
I am creating a blend file Parser in C# (specifically using vvvv) . I ...
1
vote
0
answers
166
views
How do I create an overlay widget like in blender in Qt C++?
When creating my graphic drawing application, I use QGraphicsScene and QGraphicsView together to be able to draw both free forms and ready-made objects (redefining QGraphicsItem). I am currently ...
2
votes
0
answers
63
views
How do I write a python code for Blender to refine a shape?
I am on the final steps on my project of creating a 3D model for CGRP staining and need some help with the coding. I have been trying to figure out how to generate a 3D model that connects the ...
1
vote
1
answer
158
views
Problem importing GLTF model in Three.js: Lights not working properly
I have been trying to import a GLTF model into Three.js, but I'm encountering several issues. When I import my scene with all the elements, the lights do not work as expected. The directional lights I ...
0
votes
0
answers
53
views
Blender: Report message from previous run persists in successive run of the same operator
Summary
When an operator is run multiple times successively in blender, report messages (generated by report() API) from previous runs are also showing up in present run.
What is the reason behind it ...
0
votes
1
answer
80
views
Blender API Question - rotation about center of object
I am running the following code. I would like to rotate the selected blocks about the x-axis in the center. However, it is rotating about the corner. Can I ask for assistance?
import bpy
from ...
0
votes
0
answers
40
views
Can't find parent "With Automatic Weights" in Blender for a Unity3D .fbx import?
I have no errors so I don't know what's going on. I have a fully rigged humanoid 3D model that I imported with .fbx into Blender and I'm trying to separate the arms while keeping them rigged so I can ...
0
votes
0
answers
73
views
How to compute the solid angle underlying the intersection of a cone and a sphere?
I want to compute the solid angle underlying the intersection between a cone and a sphere. To do that, I am using Blender to ease the calculations.
I parametrise a cone by specifying its apex location ...
0
votes
0
answers
42
views
ThreeJS: Raycaster selecting old, wrong nodes
so i've made made an update on my GLB files
As you can see this is my chair in blender
And these are the child nodes that make up the figure of the chair
As you can see its only an one child node
...
0
votes
0
answers
51
views
How can I modify this python code to produce a 2-start globoid worm gear in Blender?
I am designing a device that uses a double-throated, globoid worm. I am using a gear generator program to produce the worm in Blender. Using inputs given by the user, the gear generator provides a ...
-1
votes
1
answer
64
views
How do I split an OBJ file into three parts using blender 2.90
I have an object that I want to split into 3 segments and save into individual obj files. The object is placed in the center and the x-y plane. I want to cut them along the y-axis. I have attached a ...
0
votes
1
answer
36
views
Dynamic Inputs In Blender Animation?
Completely brand new to Blender, never touched it until a few days go. I figured out how to get the basics going so I have an animation I can use.
Here's what I'm going for:
Pack Ripping animation
...
0
votes
0
answers
44
views
Bevel in blender with bmesh after extrusion
I've been trying to bevel with bmesh in Blender for a few hours. With bpy.ops this works without any problems but that's exactly what I want to avoid. Switching to edit mode makes the code very slow ...
-4
votes
1
answer
69
views
Is there a way to find out why the front faces are culled instead of the back in my procedurally generated 3D model?
I have been working on procedural generation of 3d models using threeJS. I have been able to successfully procure a model with the help of marching cubes algorithm and smoothened it with the help of ...
1
vote
0
answers
36
views
Running two subprocesses together
I need to gather some performance data on some GPU renders in Blender, some of these are very short, like under 5 seconds. I currently run the render via my benchmarking script like so:
...
1
vote
3
answers
3k
views
I cannot install bpy using pip
I'm trying to install bpy using pip install bpy. According to their website: https://pypi.org/project/bpy/, version 4.3.0 is the latest (and was released in November 2024). Is there any way of using ...
2
votes
1
answer
282
views
RealityKit Character Skeleton animation weapons are not animating
I am experiencing an issue with a character animation using RealityKit. I have a file created in Blender that contains the rigged Character, a sword, and a shield. The sword and the shield have bones ...
1
vote
1
answer
79
views
How I can optimize React-three-fiber model?
I have model:
import { useGLTF } from '@react-three/drei'
import React, { FC } from 'react'
import * as THREE from 'three'
import { GLTF } from 'three-stdlib'
type GLTFResult = GLTF & {
nodes:...
0
votes
1
answer
55
views
Glitched Blender model on Libgdx game
so its my first time in the world of 3D development in libgdx
so my first step is loading my initial 3D model, which is a car
this is what my car should like: https://sketchfab.com/3d-models/subaru-...
0
votes
0
answers
28
views
Call py in scripting tab after opening blender
I currently use this bat to call blender and pass a fbx at runtime (via Send-To menu)
@echo off
SET FBX_FILE=%1
SET BLENDER_PATH="C:\portableapps\blender36\blender.exe"
echo import sys &...
0
votes
0
answers
130
views
RealityKit can't play animations properly from different USDZ files when stored in an AnimationResource collection
I'm working on a final assignment consisting in a RealityKit game and I'm so desperate finding a way to make the 3D models and animations work but I can't find tutorials or anything useful. I made a ...
0
votes
0
answers
117
views
Blender Python add-on, memory leak in bpy.ops.render.render loop
I am writing a Blender 4.0+ add-on for exporting orthographic images of multiple objects in a blender file / multiple models in a folder: https://github.com/Jussumdev/OrthoBatch/releases
However I am ...
0
votes
1
answer
90
views
Blender Rig always importing -90 on the X into Unity
I am trying to export a model from Blender and into Unity. No matter what I set the Armature settings as in the FBX export, the rig always imports in at -90 on the X axis in Unity. All Transforms in ...
-1
votes
1
answer
154
views
Object conversion from Blender to RealityKit
I am quite new to Blender (using 4.2.1) and I am creating some models I want to use inside a RealityKit scene. In one case, I am creating a pole with a PBR material that I want to convert to .usdz ...
0
votes
1
answer
46
views
How to move a vertex of an animated mesh in world space instead of local space?
I'm trying to add a vector to the selected objects vertex.
def force(self):
gravity = mathutils.Vector((0.0, 0.0, -0.5))
obj = bpy.context.object
obj.data....
1
vote
0
answers
55
views
Blender gives a `NameError` error when calling get_strokes()
I'm currently working on an addon for Blender that turns the camera view into an SVG. There's this error that shows up when I try calling get_strokes()
File "d:\Blender builds\Blender 4.2.1\4.2\...
0
votes
0
answers
42
views
How to extract vertex group information in FBXSDK C++?
I've already loaded the model, and I have access to the animation keyframes and keyvalues for each bone, however, my mesh has bones and each bone corresponds to a vertex group with specific control ...
0
votes
0
answers
38
views
How does blender implement its attribute blending for edge collapses?
I am curious as to how blender merges attributes (normals, uvs...) through its decimation process.
So I tried looking at the source code. The function where they get blended seems to be:
...
0
votes
0
answers
92
views
Gradio & Blender Python API Conflict?
(Python 3.11)
I was trying to read a Blender file in Gradio, but something weird happened that I can't understand. Here is a simplified version of the problem I met today:
When I try to run this code ...
0
votes
0
answers
83
views
How to execute code when clicking on button in properties panel (Blender add-on Python)?
Blender 3d 2.90.1,
Python 3.10,
bpy
Hello, I am working on an add-on to automate the process of creating sprites that I assemble in the form of spritesheets. My code worked so far but as soon as I ...
1
vote
0
answers
18
views
Modelling blender limit location extention/retraction in Three.js and cannon-es
I am trying to load a .glb file created in blender to a three.js with cannon-es for physics/gravity.
My goal is to be able to extend and retract each individual actuator added to my model. The model ...
0
votes
1
answer
243
views
Importing modules from specific folder in Blender python script (MacOS)
In a script within a .blend file, I'm trying to import modules from a folder relative to that blend file.
This is my folder structure:
Models/
model.blend
_scripts/
color-thief-py-master/
...