NewScene( null, false );
// ---------------------------------------------------------------------------
// SETUP
//
// First import a model so we have some external files to find
var FPath = XSIUtils.BuildPath(
Application.InstallationPath( siFactoryPath ),
"Data", "XSI_SAMPLES", "Models", "Man_Face.emdl"
);
ImportModel( FPath, null, true );
// ---------------------------------------------------------------------------
// USING THE FileReference OBJECT
//
// Get the collection of all external files on the scene
var oScene = Application.ActiveProject.ActiveScene;
var l_extFileList = oScene.ExternalFiles;
// Get the first file object in the list
var oFile = l_extFileList(0);
// Show the number of files.
Application.LogMessage( "The number of files is: " + oFile.NumberOfFilesInSequence );
// Expected results:
//INFO : The number of files is: 3 |