blender

input dialog box blender

China☆狼群 提交于 2019-12-04 11:45:13
问题 How to make a simple entry dialog box (like in the image) in blender and processing the text entered through python.I am unable to find any good tutorial on this. 回答1: For the dialog box the answer from how to show a message from a blender script? might be a starting point. But I think a better approach is integrating input into the panel like e.g. To do this you have to add a StringProperty to your add-on and place it inside your panel (see Addon Tutorial for more information). The basic

  理解 Linux 链接

戏子无情 提交于 2019-12-04 11:25:40
理解 Linux 链接 有人给我说不是很了解Linux链接,今天我就来普及一下什么是Linux链接: 链接是可以将文件和目录放在你希望它们放在的位置的另一种方式。 除了 cp 和 mv 这两个我们在本系列的前一部分中详细讨论过的,链接是可以将文件和目录放在你希望它们放在的位置的另一种方式。它的优点是可以让你同时在多个位置显示一个文件或目录。 如前所述,在物理磁盘这个级别上,文件和目录之类的东西并不真正存在。文件系统是为了方便人类使用,将它们虚构出来。但在磁盘级别上,有一个名为分区表partition table的东西,它位于每个分区的开头,然后数据分散在磁盘的其余部分。 虽然有不同类型的分区表,但是在分区开头的那个表包含的数据将映射每个目录和文件的开始和结束位置。分区表的就像一个索引:当从磁盘加载文件时,操作系统会查找表中的条目,分区表会告诉文件在磁盘上的起始位置和结束位置。然后磁盘头移动到起点,读取数据,直到它到达终点,您看:这就是你的文件。 硬链接 硬链接只是分区表中的一个条目,它指向磁盘上的某个区域,表示该区域已经被分配给文件。换句话说,硬链接指向已经被另一个条目索引的数据。让我们看看它是如何工作的。 打开终端,创建一个实验目录并进入: mkdir test_dir cd test_dir 使用 touch 创建一个文件: touch test.txt 为了获得更多的体验(?

Loading multiple objects in Three.js from Blender

安稳与你 提交于 2019-12-04 10:48:12
I have a quite complex shape (dressed girl) that in Blender is broken down into different objects and it's loaded into Three.js with the JSON loader (with a little hack I made, that uses zipped files instead of just JSON files, as there are a lot of vertices). As I want to change dynamically the style of the dress from a Web page, I was wondering how I can show/hide different pieces (e.g. sleeves) in the scene. I tried traversing the THREE.Mesh , but there are no children. When I export from Blender with the JSON exporter, I don't see anything referring to the names of the objects in the JSON.

Is there a 3D format which is a 3D extension to SVG?

笑着哭i 提交于 2019-12-04 10:07:35
SVG is the W3C's standard for 2D vector graphics. Something quite solid. Is there a 3D version of SVG? A kind of extension of it, so converting from .SVG to .something and reverse is quite straight forward. No, there is no such standard extension to SVG as part of the W3C. The closest that exists is the W3C Community Group, "Declarative 3D for the Web Architecture Community Group" . Editorial: nor should there be. While SVG is great and vector, it is a presentation format, not a data-interchange format as you seek for 3D. For example, the painter's model of SVG describes the visual layering of

Design of virtual trial room

血红的双手。 提交于 2019-12-03 22:14:05
As a part of my masters project I proposed to build a virtual trial room application intended for retail clothing stores. Currently its meant to be used directly in store though it may be extended for online stores as well. This application will show customers how a selected apparel would look on them by showing it on their 3D replica on screen. It involves 3 steps Sizing up the customer Building customer replica 3D humanoid model Apply simulated cloth on the model My question is about the feasibility of the project and choice of framework. Can this be achieved in real time using a normal

How to import Blender 3D animation to iPhone OpenGL ES?

你离开我真会死。 提交于 2019-12-03 13:54:35
问题 I am trying to do animations on iPhone using OpenGL ES. I am able to do the animation in Blender 3D software. I can export as a .obj file from Blender to OpenGL and it works on iPhone. But I am not able to export my animation work from Blender 3D to OpenGL. Can anyone please help me to solve this? 回答1: If you have a look at this article by Jeff LaMarche, you'll find a blender script that will output a 3D model to a C header file. There's also a followup article that improves upon the

Blender基础操作

自作多情 提交于 2019-12-03 13:18:57
鼠标中键: 旋转 鼠标中键+shift: 平移 鼠标右键: 选择 delete or X: 删除 A: 全选 Z: 网格模式 5: 平视模式 1: 前视角 3: 右视图 ctrl+3: 左视图 ctrl+1: 后视图 7: 顶视图 ctrl+7: 底视图 9: 当前任意视图的相反视图 2,4,6,8: 进行旋转用的 0: 相机和视图转化 T or N: 打开两侧菜单 B+鼠标左键: 选择or不选方框的物品 C: 进行圆形选择 G: 抓取某物品进行操作 R: 旋转 ctrl+R: 进行切割 S: 缩放 E: 拉伸 Alt+S: 大小复原 Alt+R: 角度复原 Alt+G: 位置复原 Alt+右键: 进入Edge Loop G+X: 在X轴移动(Y,Z同理) //旋转也一样 R+R: 二维旋转 H: 隐藏模型 Alt+H: 显示隐藏 M: 可以移动到其它层 (非小键盘的数字表示层数) Alt+1表示第二排的第一层 Shift+Alt+1显示第一排和第二排的第一层 Tab: 编辑模式 ctrl+Tab: 编辑细化 ctrl+shift+Z: 恢复撤销 ctrl+非小键盘的数字: 表示细分次数 ctrl+鼠标左键: 选择顶点游走 做椅子步骤: 1.S+Z(轴): 缩小作座位 2.ctrl+R: 将面分成9宫格 3.ctrl+Tab: 对面进行选择操作 4.E+S+Z(轴):

How to move a camera in Blender 2.61 with Python

耗尽温柔 提交于 2019-12-03 09:19:03
问题 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 work anymore because of the immense API changes with Blender 2.5. I would appreciate any hints. 回答1: furtelwart's answer was quite usefull. I did some more digging so you can also set some other very usefull properties regarding the camera and

How to connect a Python socket on client-side to Node.js/socket.io?

时光毁灭记忆、已成空白 提交于 2019-12-03 08:55:54
I want to connect Blender (v2.55) to a webpage through sockets. For the web part, I can use Node.js & socket.io. I've already used a little node.js/socket.io, it's not a problem I think. Now for Blender, it runs on Python 3.1, so I've already sockets and I can add libraries if needed. I'm new to Python sockets, can I connect a client to node.js/socket.io directly ? I tried with the basic code from the Python doc: import socket import sys HOST, PORT = "127.0.0.1", 8080 data = "Hello from Blender" # Create a socket (SOCK_STREAM means a TCP socket) sock = socket.socket(socket.AF_INET, socket.SOCK

OpenSCAD、Blender和Textmate\SublimeText遇见后发生的一切...

北城余情 提交于 2019-12-03 08:48:27
Textmate\SublimeText是编码极客们喜爱的玩具。OpenSCAD可以用MDL(机械定义语言)的方式来构建三维几何对象,而Blender除了交互三维建模之外,也支持以Python来构建几乎任何几何对象。 现在,这三者要合体了。 使用Textmate\SublimeText来编辑代码,然后分别在OpenSCAD和Blender中去执行,创建出三维模型和效果,是不是非常强悍? 从 http://www.thingiverse.com/thing:15292/#files 可以下载Textmate/SublimeText的插件,然后就可以直接操作OpenSCAD了,把OpenSCAD的CodeEditor关掉,把Design=>Automatically reload and compile选项打开,就相当于开出了一个独立的三维渲染窗口,在Textmate中写的代码就可以直接显示出来了,比内置的CodeEditor功能要强大很多很多。 做完的模型,下一步导入到Blender中去进行细节的修改,这时候仍然可以使用Textmate来进行控制。怎么搞法呢?参见这里: http://my.oschina.net/u/2306127/blog/372605 。 如果你愿意(我愿意、我愿意!),也可以用Python来写一个自动创建SCAD模型文件的库,这个有点烧脑了,多保重