Jump to content

Create empty hip file using Python

Recommended Posts

Hey guys, 

I need to create some empty files with Python, and when I try with :

open("my_file.py", "w").close()

When I open the file with hou.hipFile.load() or with a Houdini subprocess, I get an error (Error : Unexpected end of hip file). It seems normal to me because I assume Houdini put some data even when the file is empty, but I'd like to know if someone here knows how I can create en empty houdini file, without having to open it manually and save it to override the existing bugged file.


Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now