We have a backend process that our build machines trigger that involves the import of audio files for processing. Now by the look of it you can't import audio in Maya standalone, or rather, the audio you import looks like placeholder as it always has no length... which was a real issue for us. I've modified the Red9.AudioHandler to by-pass this for future but it's still a really starnge bug. Sounds like the audio loading requires something from the UI to be processed correctly.
thanks
Mark
import maya.standalone maya.standalone.initialize(name='python') import maya.cmds as cmds audioPath="mywavfile.wav" cmds.file(audioPath, i=True, type='audio', options='o=0') audioNode=cmds.ls(type='audio')[0] cmds.getAttr('%s.endFrame' % audioNode)