blender

How to fix error when importing the blender module in Python

时光总嘲笑我的痴心妄想 提交于 2019-12-11 17:16:12
问题 i get the following error code when i import bpy into python is this because i need blender installed or can i solve this probelm another way' Color management: using fallback mode for management BLT_lang_init: 'locale' data path for translations not found, continuing AL lib: (EE) UpdateDeviceParams: Failed to set 44100hz, got 48000hz instead bpy: couldnt find 'scripts/modules', blender probably wont start. Freestyle: couldn't find 'scripts/freestyle/modules', Freestyle won't work properly.

How to export .obj format file with texture in blender?

早过忘川 提交于 2019-12-11 15:27:26
问题 First of all i am new in blender. i have attached texture from tree object. this project exporting (.obj) and (.mtl) files only.but it does not exporting texture images.I need textures image also. please any give the solution. 回答1: about blender obj read this - Blender imports obj files with textures just fine with Blender Internal renderer as the active renderer. But importing obj files with texture while Cycles is the active renderer is currently not supported. With Cycles you have to

J3D - How to use a UV mapping of an object to convert 2D coordinates to 3D ones

孤者浪人 提交于 2019-12-11 14:26:08
问题 I am currently working on trying to convert 2D coordinates to 3D ones. Basically, I have the texture in 2D and I would like to be able to show on a 3D object, having the same texture applied to it, where I am pointing at. Let's say I have the 2D texture of the world. I would like to be able to know, given U,V coordinates on the texture, to get the X,Y,Z coordinates on a sphere having the same texture applied to it. I am using J3D and now I am working with blender and figure out what is the

How to run a Python script from another Python script in the cross-platform way?

浪子不回头ぞ 提交于 2019-12-11 13:47:10
问题 Here is the problem... I'm writing very small plugin for Blender, I have 10 python scripts, they parsing different file formats by using command-line, and I have a Main Python script to run all other scripts with proper commands... for example, "Main.py" include: txt2cfg.py -inFile -outFile... ma2lxo.py -inFile -outFile... Blender already include Python, so I can run "Main.py" from Blender, But I need it to work with both PC and MAC, and also doesn't require Python installation, so I can't

How to export .dae animation from Blender?

て烟熏妆下的殇ゞ 提交于 2019-12-11 10:37:43
问题 I was practicing animation in Blender so I downloaded a .dae file of a car and implemented some animation to it. I wanted to make the car open and close the door and I manage to do that (inserting keyframes to it). The problem is that when I export it to .dae File -> Export -> DAE and import it, to see if the animation was saved: File -> Import -> DAE but it doesn't do anything. Is there any way I can export and see the animation as .dae file?* P.S. I want it to export it as a .dae file

Exporting blender animations: can't reproduce three.js example

﹥>﹥吖頭↗ 提交于 2019-12-11 10:09:47
问题 I'm using three.js r73. I'm looking at one of the examples, examples/webgl_skinning_simple.html. As is it works fine. The model used in the example lives in examples/models/skinned/simple/. In this directory is the .js file imported by the example as well as the .blend file used to create it. The problem I'm having is that if I load the blend file in blender and then export it I don't get usable JSON. Just loading the blend file and then exporting (enabling the Bones and Skinning checkboxes

Python 3.1 - Error while adding a library in Blender

 ̄綄美尐妖づ 提交于 2019-12-11 09:29:18
问题 For this problem (stackoverflow.com/questions/4086435/), I tried to make a Python 3 version of the library python-websocket (github.com/mtah/python-websocket/), here is my code: https://gist.github.com/663175. Blender comes with his own Python 3.1 package, so I added my file directly in its «site-packages» folder. I get this error now: Traceback (most recent call last): File "websocket.py", line 6, in AttributeError: 'module' object has no attribute 'WebSocket' when running this code in

How to use toon shader to convert 3D models to patent drawings

扶醉桌前 提交于 2019-12-11 09:17:00
问题 USPTO requires patent drawings to be black and white lines images. I'm using blender to make 3D models. At first I got this: The problem is it's grayscale with no black lines.There's a answer to suggest using toon shader. Convert 3D models to patent digrams I checked "Edge" and set "Threshold" to max 255 in "Render" tab, I got: It's getting better but need more edges to be drawn. I searched and found a tutorial http://www.minimaexpresion.es/?p=1070&lang=en , then I got: It's too complicated

Gimp: why can't I register this?

谁说胖子不能爱 提交于 2019-12-11 08:37:16
问题 I'm writing an add-on for Blender to sync it with Gimp and this script should be able to start from within Gimp, but I can't register it... Why? blender_gimp_sync.py: # -*- coding: utf-8 -*- #!/usr/bin/env python from gimpfu import * def blender_gimp_sync(): image_dir = "/home/antoni4040/Έγγραφα/Layout.png" image = gimp.pdb.gimp_file_load(image_dir, image_dir) gimp.Display(image) register( "python_fu_bgsync", "Blender-Gimp Sync", "Syncronize Gimp with Blender for texturing", "Antonis Karvelas

Issues importing animated models from Maya to Blender and then to three.js?

≡放荡痞女 提交于 2019-12-11 08:11:07
问题 I have a simply question and hopefully someone can answer this. I need to get an animated model into three.js from Maya. I know currently the only exporter/ converter to the three.js JSON format that supports animations is the blender plugin. Unfortunately, my company works with Maya and Blender doesn't take FBXs. I already figured out that in order to do what I need to do, I need to export out of maya a Collada, import the Collada into Blender, then export out to three.js using the plugin.