Save CHOP audio to .wav file via Python in 16.5 ?

   1114   2   0
User Avatar
Member
35 posts
Joined: April 2015
Offline
Is there any way to save a CHOP channel as an audio file via Python in H16.5 ?

I can right click on the CHOP and Save->Data Channles and give the filename a .wav extension and it writes a correct audio wav file, but it looks like hou.ChopNode.saveClip() method isn't implemented in 16.5 and (maybe) is in 17.0.. ?

Would that be the only way to get a sound file out through Python?
User Avatar
Member
8599 posts
Joined: July 2007
Offline
I think you can just wrap opsave hscript command in hou.hscript() call

http://www.sidefx.com/docs/houdini/hom/hou/hscript.html [www.sidefx.com]
http://www.sidefx.com/docs/houdini/commands/opsave.html [www.sidefx.com]
Tomas Slancik
FX Supervisor
Method Studios, NY
User Avatar
Member
35 posts
Joined: April 2015
Offline
I'm always amazed at how long the python api has been around and how much hscript functionality still hasn't made it over..

Good call on hscript- that works great!
  • Quick Links