Audio handling in Maya.standalone?

11 views
Skip to first unread message

MarkJ

unread,
Oct 23, 2013, 8:31:56 AM10/23/13
to python_in...@googlegroups.com
Hi all, has anybody ever used audio with maya.standalone? 

we have a backend process that our build machines trigger which 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 is a real issue for us. Anybody have any insight on this?

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)
Reply all
Reply to author
Forward
0 new messages