Search code examples
animationexportmaya

Maya 2015 Suggestions for speeding up exporting when scene has animation


I am able to export per frame object data from Maya 2015 using a custom File Translator.

When I export animation from a scene my exporter moves the time slider along each frame and writes out the new values (such as position) for the channels that are animated. This repeats for all animated channels until we reach the last animation frame.

Exporting this way causes Maya's viewport to update each frame. During export I don't really want/need this to happen.

Does anyone know of any way to update all logical data per frame in Maya without requesting the viewport also reflects these updates?


Solution

  • Turning off viewport is one option but using refresh is 10 times faster.

    cmds.refresh(suspend=True)
    doYourFunc()
    cmds.refresh(suspend=False)