Hi! Thanks for the reply! this actually helped but I still have some problem. Let me explain. I save all the targets in a different file so that when I rebuild the rig I can apply them. Indeed on some targets there were orig shapes. I removed them and now when I build the rig through my script it caches correctly on the gpu. However, as soon as I save the file and I reopen it then it won't cache it on the gpu anymore. I tried to turn it on/off, I tried to switch between smooth preview and not etc. The result doesn't change.
Then I had kind of an epiphany, and I saved the file as .mb rather than .ma and all the problems are gone. Everything works as expected. However the client will need the .ma as well so I still have to figure this out. Also I noticed that now when reopening the file, whether it is .ma or .mb after you open the file and the viewport is loaded (so the rig appears) maya stays frozen keep loading stuff for a couple of minutes (it is like is loading the outliner since that doesn't show anything during this freezing time), before it would only take few seconds. I feel like this is related to the gpu problem. Thanks again! Il giorno lunedì 4 maggio 2020 22:12:06 UTC+2, Luiz Amaral ha scritto: > > Hello there, > > I had a similar problem and I found out that one of the blendshape’s > targets had an intermediate shape on it when it was applied. > > Maya creates an intermediate shape on any mesh that has a deformer applied > to it and even after you clear the history the intermediate shape remains. > > I feel that whenever Maya sees the intermediate shape on any of the > targets it assumes it has a deformer on it and flags the blendshape > deformer to not go to gpu. > > Anyways cleaning the intermediate shapes on all targets before applying > them to the blendshape solved the issue for me. > > Another thing I found out was that sometimes after creating and connecting > a blendshape by code the scene had to be saved and re opened in order for > the mesh to go to gpu. > > Hope this helps. > > Cheers, > > Luiz > > > -- 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 python_inside_maya+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/python_inside_maya/7b4ea26a-c8ff-4c0a-a618-6b34facda8b5%40googlegroups.com.