Tasks/DeleteUnusedMedia.py
9 from pyfbsdk
import FBSystem, FBComponent
17 lList = [ lTexture
for lTexture
in lSystem.Scene.Textures
if (len( lTexture.Parents ) == 1
and lTexture.Parents[0].Name==
"Scene") ]
18 map( FBComponent.FBDelete, lList )
21 lList = [ lMedia
for lMedia
in lSystem.Scene.VideoClips
if (len( lMedia.Parents ) == 1
and lMedia.Parents[0].Name==
"Scene") ]
22 map( FBComponent.FBDelete, lList )
28 if dir().__contains__(
'lTexture' ): del( lTexture )
29 if dir().__contains__(
'lMedia' ): del( lMedia )
35 del( FBSystem, FBComponent )