FileReference.Owners
 
 
 

FileReference.Owners

Description

Returns the owners of this file as an XSICollection. Usually there is only one owner: the parameter containing the source (the audio or image file, etc).

C# Syntax

// get accessor
CXSICollection rtn = FileReference.Owners;

Examples

JScript Example

NewScene( null, false );
// First import an image so we have some external files to find
var myImg = XSIUtils.BuildPath( 
        Application.InstallationPath(siProjectPath),
        "Pictures", "back.bmp" 
);
CreateImageClip( myImg, "MyClip" );
// 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);
// Get the owners 
var oOwners = oFile.Owners;
for (i=0; i< oOwners.Count; i++) {
        Application.LogMessage ("The owner is: " + oOwners(i));
}
// Expected result:
// INFO : The owner is: Sources.back_bmp.Path

See Also

FileReference.Path