import maya.cmds as cmds
customPth = “/net/username/test/testscene.mb”
cmds.file(rename = customPth)
cmds.file(s=True,f=True, typ=”mayaBinary”)
This works for me, but remember if you trying to save a mayaAscii to mayaBinary then it may fail if it has any unknown nodes.
--
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_m...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/python_inside_maya/CAAB1%3D8zscL-Kth%3Dj49aQgdFAYPZCtOrWEhG2HNM1bDwVtgjsYg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
To view this discussion on the web visit https://groups.google.com/d/msgid/python_inside_maya/CANEMyhNQ-ipRN8_jeRBy69BrDXo9wWSpFqLusOpvo-1KKLWQSQ%40mail.gmail.com.