Skip to content

shimawork/io_scene_obj_vertex_color

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 

Repository files navigation

頂点カラーの.objファイルをBlenderのversion2.79にインポートするの備忘

本家はこちら

https://blender.stackexchange.com/questions/90890/how-to-display-and-use-vertex-color-from-obj-model

でこのままだとimportするとなんちゃらエラー

Traceback (most recent call last):
  File "/Applications/Blender/blender.app/Contents/Resources/2.79/scripts/addons/io_scene_obj/__init__.py", line 148, in execute
    return import_obj.load(context, **keywords)
TypeError: load() got an unexpected keyword argument 'use_cycles'

location: <unknown location>:-1

で、init.pyの142行目をコメントアウト

        keywords["global_matrix"] = global_matrix
#        keywords["use_cycles"] = (context.scene.render.engine == 'CYCLES')

        if bpy.data.is_saved and context.user_preferences.filepaths.use_relative_paths:
            import os
            keywords["relpath"] = os.path.dirname(bpy.data.filepath)

        return import_obj.load(context, **keywords)

あとは普通にimport

FILE → import → Wavefront(.obj) → インポートするobj選択

インポートされたオブジェクトを選択して3Dビューの左下のリスト

「Object Edit Mode」→「Vertex Paint」

へ変更です。

※.コメントアウトしてしまったので、なにか他のobjフォーマット読み込めなくなってる可能性大ですよね。(バックアップは取りましょう)

うまくいけばこんな感じ

オブジェクトちゃんと選択して「Vertex Paint」を選んでください。

こんな感じです。

About

頂点カラーの.objファイルをBlenderのversion2.79にインポートするの備忘

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages