It took a while but I managed to figure it out. You have to use the points flag for each object you want to cache, but since python doesn't support using a flag more than once I just ended up generating a mel command and pushed it through mel.eval(), This is essentially what the maya mel scripts are doing under the hood
On Thursday, June 2, 2016 at 5:10:56 PM UTC-4, Kyle Burris wrote: > > I'm trying to geo cach a bunch of objects simultaneously with the cachFile > command. Through the UI you can select multiple objects and run > geometryCache -> exportCache and maya will go through the timeline once and > write your cache according to your options. However in python the closest I > can get is to use the points flag to cache a single object. I've tried > digging through the mel scripts that the UI calls but I'm still stumped. > > > Any ideas? > > Thanks, > Kyle > > -- You received this message because you are subscribed to the Google Groups "Python Programming for Autodesk Maya" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/python_inside_maya/7e0b60de-453f-4142-8d2e-f9014ad04ba2%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
