Thank you very much it works a treat :-)
On Thu, Feb 13, 2014 at 2:23 PM, Vladimir Jankijevic < [email protected]> wrote: > here is how you get all the FileCache sources: > > allFileCacheSources = Application.Dictionary.GetObject( > "Sources.FileCaches" ).NestedObjects > > from there you can build a list with all the file paths and check against > them. > > hope this helps > > > On Thu, Feb 13, 2014 at 9:17 AM, Ricky Gregory > <[email protected]>wrote: > >> Hi, >> >> Yeah i should have explained that better. >> >> I am trying to write a tool that loads .pc2 and icecaches onto a model in >> a scene. These caches get added to the mixer as is shown in the attached >> image. >> >> I would like to be able to search the list and delete the cache if it >> already exists before i try and import an updated cache. If the caches are >> not deleted there seems to be duplicates made. >> >> I hope this makes sense? >> >> Thanks for your help >> >> Ricky >> >> >> >> >> On Thu, Feb 13, 2014 at 1:51 PM, Simon Reeves <[email protected]>wrote: >> >>> Id try and help but I'm not sure where the FileCache Sources thing >>> (property) is or how I make one to test it :) >>> >>> >>> >>> Simon Reeves >>> London, UK >>> *[email protected] <[email protected]>* >>> *www.simonreeves.com <http://www.simonreeves.com>* >>> *www.analogstudio.co.uk <http://www.analogstudio.co.uk>* >>> >>> >>> On 13 February 2014 13:33, Ricky Gregory <[email protected]>wrote: >>> >>>> Hi, >>>> >>>> I hope you can help, >>>> >>>> I am trying to return a list of all the FileCache Sources underneath a >>>> model. >>>> >>>> I found this script that works for action sources.... >>>> >>>> xsi = Application >>>> sel = xsi.Selection >>>> >>>> model = sel(0) >>>> mixer = model.Mixer >>>> >>>> allShapeSourcesNameList = [str(s.FullName) for s in model.Sources if >>>> s.Type == "ShapeAction"] >>>> print allShapeSourcesNameList >>>> >>>> I have tried using model.ExternalFiles but this just returns links to >>>> textures etc. >>>> >>>> Any help would be greatly appreciated >>>> >>>> Thanks >>>> >>>> Ricky Gregory >>>> A Large Evil Corportaion >>>> >>> >>> >> >

