Automate interface / Batch process Black Box HDAs

   1118   2   1
User Avatar
Member
2 posts
Joined: Feb. 2021
Offline
Hi;
I need to convert and keep updated a entire directory of HDAs to their black box version.
Sadly, the only option to convert to black box is from the interface in Houdini.
Is their a way to either:
-create a script to call black box conversion
-use a specialised command line utility provided by SideFX to do this
-call a specific part of the interface to "remote control" it

I found nothing in HOM to help me with this.
I tried digging in the PySide QWidgets to worm my way inside the mainwindow, but to no avail.

I feel a little out of options.
Any ideas ?
User Avatar
Member
402 posts
Joined: April 2017
Offline
The exact HOM function you want to use here is hou.HDADefinition.save(black_box=True). If you're blackboxing HDAs for Houdini versions prior to 19.5, the syntax is a little different: use hou.HDADefinition.save(compile_contents=True, black_box=True).
MOPs (Motion Operators for Houdini): http://www.motionoperators.com [www.motionoperators.com]
User Avatar
Member
2 posts
Joined: Feb. 2021
Offline
OMG @toadstorm, I absolutely missed that !
My savior, thanks !
  • Quick Links