搅拌机导入/导出脚本 [英] blender import/export script

查看:140
本文介绍了搅拌机导入/导出脚本的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我应该为Blender创建一个python脚本,该脚本可以导入obj并导出obj,从而删除所有纹理部分. 我从未使用过Blender,是否有很好的教程来抓取表面并实现此简单任务?

I should create a python script for Blender that imports obj and exports obj removing all texture sections. I never used blender, is there a good tutorial for scratch the surface and achieve this simple task?

谢谢

推荐答案

blender python API a>网站包含一些教程,可用于在Blender中学习使用python.您可以找到obj 进口商的详细信息导出器选项. obj的导入/导出由随附在搅拌器中的python插件处理./a>.

The blender python api website includes several tutorials to learn using python in blender. You can find details of the obj importer and exporter options. The obj import/export is handled by a python addon that is included with blender.

您可以从简单的内容开始-

You could start with something as simple as -

import bpy,os
for f in os.listdir('/path/to/use'):
    bpy.ops.import_scene.obj(filepath=f)
    bpy.ops.export_scene.obj(filepath=f,use_materials=False)

如果您需要更多帮助,blender拥有自己的 SE网站,更适合于特定于Blender的脚本.

If you need more help, blender has it's own SE site that is better for blender specific scripting.

这篇关于搅拌机导入/导出脚本的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆