I'm trying to create a script to import a nCloth cache file to multiple pieces of compatible geometry. Works just fine as I do it one by one. Just select the geometry > nCache>Attach Existing Cache file. And it's good.
The problem is trying to do it with mel so I can write a script. When I do it a browser window pops open, prompting me to select the cache to attach, instead of automatically attaching the one indicated. Have tried a few things. But below is the basic MEL I am using to call in the cache file.
attachNclothCache;
importCacheFile "../maya/projects/Animation/data/objects1/cache1.mc" "Best Guess";
Any ideas?
Thanks
W