Hiro11 Posted November 20, 2019 Share Posted November 20, 2019 Hi, I want to get the version of the hip using hbatch.(the Houdini version I used to make the hip file) (Also I want to check a lot of files) Can someone guide me?? Thanks Hiro Quote Link to comment Share on other sites More sharing options...
jkunz07 Posted November 20, 2019 Share Posted November 20, 2019 You can do something like: echo $_HIP_SAVEVERSION > $TEMP/$HIPNAME.txt This will put the version number of Houdini that the file was last saved with into a .txt file of the same name as the .hip file your currently checking (In the /tmp directory of your OS). Quote Link to comment Share on other sites More sharing options...
jkunz07 Posted November 20, 2019 Share Posted November 20, 2019 I would recommend python/hython for this task because you mention your dealing with many files. Python is much better at working with directories, many files on disk and databases then hscript/hbatch is. Quote Link to comment Share on other sites More sharing options...
Hiro11 Posted November 21, 2019 Author Share Posted November 21, 2019 jkunz07 Thanks for the reply!! Yes,I was trying with hython yesterday and agree with you.I think I would do it with hython. Thanks Hiro Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.