Questions tagged [blender]

Blender is the free open source 3D content creation suite, available for all major operating systems under the GNU General Public License. Also see the https://blender.stackexchange.com Stack Exchange site for more Blender-related questions.

Blender is a free and open-source 3D computer graphics software product used for creating animated films, visual effects, interactive 3D applications or video games. Blender's features include 3D modeling, UV unwrapping, texturing, rigging and skinning, fluid and smoke simulation, particle simulation, animating, match moving, camera tracking, rendering, video editing and compositing, featuring also a built-in game engine.

It is mainly written in C. Python is used for scripting and part of the user interface.

Resources:

3246 questions
18
votes
5 answers

Sample COLLADA files for development of an importer?

I'm preparing to write a COLLADA importer in Java. There aren't any pre-written importers, and even if there were I would probably be picky, so I believe this is best. I am going with COLLADA 1.4 because I do not need the 1.5 features, and many…
Ricket
  • 33,368
  • 30
  • 112
  • 143
17
votes
4 answers

How do I use Blender models in Java?

Just a general question really? Let's say I am making a game and have made a character model in Blender. How would I use this model in Java? Would I import it somehow? Thanks.
Garee
  • 433
  • 2
  • 4
  • 6
17
votes
5 answers

How do I change the same parameter on multiple objects efficiently in Blender?

Starting with a single cube, I have changed some properties (material, color, reflection attributes), and then duplicated the object into a dozen cubes, placing them in the scene. After rendering, I'd like to change the color of all of them. How do…
cfi
  • 10,915
  • 8
  • 57
  • 103
16
votes
1 answer

Opening .blend files using Blender's Python API

I'm trying to make an automated build system for Blender 2.73 which reads XML files with lots of paths, opens the files one by another and then renders them. I'm using the following code in order to open: bpy.ops.wm.open_mainfile("file_path") My…
user3684240
  • 1,420
  • 2
  • 12
  • 18
16
votes
11 answers

How can I export DAE files for use in Scene Kit without seeing "untitled-animations"?

I am trying to load animations created in Cheetah 3D and Blender 3D into Scene Kit, but all I get is a bunch of "untitled-animations" with each one being the same animation. Does anyone know how to properly export these from Blender or Cheetah 3D…
user160632
  • 347
  • 1
  • 4
  • 13
16
votes
3 answers

What is an RNA (or DNA) property?

I've come across the terms "RNA" and "RNA property" in programming documentation before. Can someone explain to me what these terms mean? Are these general programming terms that apply to many languages, or are these non-general terms? It's…
Qutorial
  • 263
  • 2
  • 5
15
votes
4 answers

Unable to find custom Blender operator in F3 operator search (Blender 2.9)

I am working through this tutorial: https://docs.blender.org/manual/en/latest/advanced/scripting/addon_tutorial.html I have copied the script below from the tutorial and it compiles without any errors when I run the script. I should be able to…
898Matthew
  • 153
  • 1
  • 7
15
votes
3 answers

Blender, Python Scripting Tutorials

I already know some Python and got interested in extending Blender using Python scripts. Can anyone suggest me some good tutorials or books to learn this subject further? I'm already looking at Blender documentation, but I would like to learn some…
Dananjaya
  • 2,135
  • 8
  • 22
  • 27
15
votes
2 answers

Can you add a light source in blender using python

Alright, I'm totally new to Blender and am just looking for some good tutorials on how to use python to control it. I want to be able to add/remove/edit light sources via python methods... can this be done? Thanks for any advice.
innov83r
  • 443
  • 1
  • 4
  • 12
15
votes
9 answers

How can I access BPY in standard python console? BPY is the Blender-python -thing

The author here in point 17.20-17.50 mentions that you can access BPY with the standard Python interpreter in the future. It is already 1 year old so how can I access the BPY with the standard python console? Trial 0: roundaround -solution not…
hhh
  • 50,788
  • 62
  • 179
  • 282
14
votes
3 answers

How to move a camera in Blender 2.61 with Python

I'm searching for a simple script to move a camera in Blender 2.61 with Python. I thought this would be an easy task, but the Camera object has no properties like loc or something similar. I only found scripts online for Blender 2.49 but they don't…
guerda
  • 23,388
  • 27
  • 97
  • 146
14
votes
2 answers

Static variable inheritance in Python

I'm writing Python scripts for Blender for a project, but I'm pretty new to the language. Something I am confused about is the usage of static variables. Here is the piece of code I am currently working on: class panelToggle(bpy.types.Operator): …
gibberish
  • 145
  • 1
  • 2
  • 6
14
votes
3 answers

Including textures when exporting from Blender to COLLADA/.dae format for use in SceneKit

I am able to export meshes created in Blender for use in SceneKit by using the COLLADA/.dae format - however no textures show up on iOS device. Also, Preview on OS X won't open any COLLADA file exported from Blender - yet the sidebar preview does…
Jonny
  • 15,955
  • 18
  • 111
  • 232
14
votes
2 answers

How to analyse the source code of Blender

I am a beginner of Blender, my professor asked me to read the source code of Blender 2.6 and study how blender implements the material and texture block. After i have downloaded the source code, i find it is impossible for me to read whole source…
chenhao9255
  • 153
  • 1
  • 7
13
votes
2 answers

How do I get the index of the largest list inside a list of lists using Python?

I am storing animation key frames from Cinema4D(using the awesome py4D) into a lists of lists: props = [lx,ly,lz,sx,sy,sz,rx,ry,rz] I printed out the keyframes for each property/track in an arbitrary animation and they are of different…
George Profenza
  • 50,687
  • 19
  • 144
  • 218