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)
--
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/db504f29-021f-4324-9a62-b127e729347b%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.