SIObjExport

詳細

objファイルにXSICollection を書き出します。

スクリプト構文

SIObjExport( Object, FileName, CoordinateSystem, Tesselation, Material, UV, UserNormal );

パラメータ

パラメータ タイプ 説明
Object XSICollection 書き出しするオブジェクトのコレクション
FileName 文字列 .obj の出力ファイルの名前
CoordinateSystem Integer 読み込みする階層のタイプを選択します(なし/ヌルを親とする/モデルを親とする)。
Tesselation Boolean テッセレート
Material Boolean マテリアルの書き出し
UV Boolean UV を書き出しするかどうかを指定します。
UserNormal Boolean UserNormal を書き出しするかどうかを指定します。

VBScript の例

CreatePrim "Sphere", "MeshSurface"

set oColl = CreateObject("XSI.Collection")

oColl.Add "Sphere"

SIObjExport oColl, "c:\fooSphere", 1, False, True, True

'VERBOSE : Wavefront OBJ Export: c:\fooSphere.obj

'VERBOSE : Exporting material: sphere.Scene_Material