On Thu, Mar 26, 2015 at 8:23 AM Fabrice Altman <[email protected]> wrote:
> Hi, > > we have a simple python script that runs totally fine in Maya GUI but > breaks and crashes Maya GUI. > Do you mean that it breaks in Maya batch? > The script simply moves a bunch of locators to points on a curve. > > Being Maya newbies (ex Softies) we must be missing something major so > apologies in advance. > > To simplify, the snippet bellow drwas a circle an saves the scene. Why is > this not even working in Mayabatch 2015 Ext1 SP5?? > > print "OPENED!" > import maya.cmds as cmds > cmds.circle(r=10, d=1, n="test_Curve", s=20,) > cmds.file( rename='\\\\AKAAPPS\\Maya_Workgroups\\Tools\\test.ma') > cmds.file( save=True, type='mayaAscii') > print "SAVED!" > > Did you first import maya.standalone and initialize it? > Any ideas much appreciated! > > Cheers, > F. > > -- > 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/bb722f49-fab0-45c0-9dd1-f7bac2891d4f%40googlegroups.com > <https://groups.google.com/d/msgid/python_inside_maya/bb722f49-fab0-45c0-9dd1-f7bac2891d4f%40googlegroups.com?utm_medium=email&utm_source=footer> > . > For more options, visit https://groups.google.com/d/optout. > -- 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/CAPGFgA0Us%3DgGFNso1Gr70W2XZYCkfyk6apEOZdjsfG1esrJGng%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
