v5.0
Softimage で spdlcheck ユーティリティを開始します。 spdlcheck ユーティリティは、SPDL
ファイルを分析し、検出されたエラーを報告するコマンドライン ツールです。
注: spdlcheckユーティリティにはこのコマンドで表示される機能以外の機能もあります。
詳細については、このコマンドの実装ファイル($factory¥Application¥Commands¥SDKHelpers.js)、および「SPDL
リファレンス」を参照してください。
oString = SpdlCheck( strFilePath, [in_WithUI] ); |
spdlcheck ユーティリティが出力する文字列。
| パラメータ | タイプ | 詳細 |
|---|---|---|
| strFilePath | 文字列 | SPDL ファイルへの完全パス。 |
| in_WithUI | ブール | ユーザ インターフェイスを表示するかどうかを指定します。 True の場合は spdlcheck の結果が直ちに表示されます。
False の場合は何も表示されず、spdlcheck の結果の処理はユーザに委ねられます。
デフォルト値: true |
/*
Demonstration of spdlcheck
*/
// Get the path to the spdl file on an internal Softimage object
var oSphere = ActiveSceneRoot.AddGeometry( "Sphere", "MeshSurface" ) ;
var spdlFile = XSIUtils.DataRepository.GetIdentifier( oSphere, siSpdlFile ) ;
// Check it with spdlcheck (note: this should always pass,
// otherwise we would not be able to create the Sphere in the first place)
var spdlCheckResults = SpdlCheck( spdlFile, false ) ;
// If the string begins with "Compilation succeeded" we know that
// the spdl is ok.
var bSuccess = ( 0 == spdlCheckResults.search( /^Compilation succeeded/ ) );
if ( bSuccess )
Application.LogMessage( spdlFile + " compiles ok" ) ;
else
Application.LogMessage( spdlCheckResults ) ;
|