v6.0
現在のシーンから DirectX .x ファイルに指定された情報を書き出します。
oCStatus::OK = DXExport( DX_Filename, [DX_Format], [DX_AnimationExport], [DX_AnimationFrameOffset], [DX_AnimationType], [DX_TexturesExport], [DX_TexturesAbsolutePaths], [DX_TexturesSequences], [DX_TexturesCopyTextures], [DX_TexturesResizeX], [DX_TexturesResizeY], [DX_TexturesFormat], [DX_OptionsTriangulate], [DX_OptionsPlotAnimation], [DX_OptionsExportHiddenObjects], [DX_OptionsChains], [DX_OptionsCompressMesh] ); |
CStatus::OK 成功した場合。成功しなかった場合はエラー コード。
| パラメータ | タイプ | 詳細 | ||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| DX_Filename | 文字列 | 書き出し先のファイル。 | ||||||||||||||||||||||||
| DX_Format | Integer | 書き出し先のファイル形式。
デフォルト値: 0
|
||||||||||||||||||||||||
| DX_AnimationExport | ブール | アニメーションを .x ファイルに書き出すかどうか。
デフォルト値: true |
||||||||||||||||||||||||
| DX_AnimationFrameOffset | Integer | 書き出されたアニメーションが開始されるフレーム。
デフォルト値: 1 |
||||||||||||||||||||||||
| DX_AnimationType | Integer | SRT または Matrix Keys。
デフォルト値: 0
|
||||||||||||||||||||||||
| DX_TexturesExport | ブール | テクスチャを .x ファイルに書き出すかどうか。
デフォルト値: true |
||||||||||||||||||||||||
| DX_TexturesAbsolutePaths | ブール | 絶対パスまたは相対パスを使用してテクスチャを書き出します。
デフォルト値: false |
||||||||||||||||||||||||
| DX_TexturesSequences | ブール | アニメートされたテクスチャ シーケンスを書き出します。
デフォルト値: false |
||||||||||||||||||||||||
| DX_TexturesCopyTextures | ブール | テクスチャを書き出しフォルダにローカルにコピーするかどうか。
デフォルト値: false |
||||||||||||||||||||||||
| DX_TexturesResizeX | Integer | X 方向のテクスチャの新しいサイズを指定できます。
デフォルト値: 0
|
||||||||||||||||||||||||
| DX_TexturesResizeY | Integer | Y 方向のテクスチャの新しいサイズを指定できます。
デフォルト値: 0
|
||||||||||||||||||||||||
| DX_TexturesFormat | Integer | 書き出し中にイメージ フォーマットの変換を制御します。
デフォルト値: 0
|
||||||||||||||||||||||||
| DX_OptionsTriangulate | ブール | 書き出し中にジオメトリで三角分割が実行されるかどうか。
デフォルト値: false |
||||||||||||||||||||||||
| DX_OptionsPlotAnimation | ブール | キー設定されたフレームだけでなく、各フレームでアニメーションをプロットします。
デフォルト値: false |
||||||||||||||||||||||||
| DX_OptionsExportHiddenObjects | ブール | ビューポートで非表示になっているオブジェクトを書き出すかどうか。
デフォルト値: false |
||||||||||||||||||||||||
| DX_OptionsChains | Integer | IK および FK の書き出し方法を選択します。
デフォルト値: 0
|
||||||||||||||||||||||||
| DX_OptionsCompressMesh | ブール | メッシュが圧縮されるかどうか。
デフォルト値: true |
var exportto = XSIUtils.BuildPath( Application.InstallationPath(siUserPath),
"Data", "XSI_SAMPLES", "Scenes", "myscene.x" );
// Export animation, textures, etc.
DXExport( exportto,
0, // format type
true, // export anim
1, // frame offset
true, // type - 0 for Matrix keys, 1 for SRTs
false, // import textures
false, // absolute paths
false, // image sequences
false, // copy textures
0, // Resize X - 0 for don't resize, 1 for auto, ...
0, // Resize Y - 0 for don't resize, 1 for auto, ...
3, // Image format - 0 for original, ...
true, // triangulate
true, // plot animation
true, // export hidden objects
0 // compress mesh
);
|
var exportto = XSIUtils.BuildPath( Application.InstallationPath(siUserPath),
"Data", "XSI_SAMPLES", "Scenes", "myscene.x" );
// Export using all defaults
DXExport( exportto );
|