wandersonp Posted January 26, 2015 Share Posted January 26, 2015 (edited) input = hou.ui.readInput("Are you trying to messes up my file dude? put password") if input[1] == "password": hou.ui.displayMessage("Access granted") else: hou.ui.displayMessage("Get out of here dude") hou.exit(suppress_save_prompt=True) put this code at Python Source Editor in the file example the code is the same, "password" is the password, if is wrong houdini shutdown in your face password_v01.hip Edited January 26, 2015 by wandersonp 2 Quote Link to comment Share on other sites More sharing options...
kleer001 Posted January 27, 2015 Share Posted January 27, 2015 Oh man, where are you at where you need to password protect your files? 2 Quote Link to comment Share on other sites More sharing options...
symek Posted January 27, 2015 Share Posted January 27, 2015 well, you can easily edit hip file without opening Houdini and remove that code... 3 Quote Link to comment Share on other sites More sharing options...
pezetko Posted January 27, 2015 Share Posted January 27, 2015 Could be bypassed with a text editor in the blink of an eye. Rather zip your file and put the password on it, or better, put a read access only to your login (user) account, so other users cannot access it directly by os. 2 Quote Link to comment Share on other sites More sharing options...
wandersonp Posted January 27, 2015 Author Share Posted January 27, 2015 the real deal here was to discover how startup python/hscript/expression when I load a file, the password protection I tested just for fun, there is no real value in production. 1 Quote Link to comment Share on other sites More sharing options...
kleer001 Posted January 27, 2015 Share Posted January 27, 2015 Ok, whew. I thought you were in some serious trenches there, fighting with other artists for precious disk space or had run into some serious pranksters. Quote Link to comment Share on other sites More sharing options...
wandersonp Posted January 27, 2015 Author Share Posted January 27, 2015 kleer001, for me is just part of learning process while I'm digging at houdini, sometimes making useful stuff another time making useless just to learn Quote Link to comment Share on other sites More sharing options...
edward Posted January 28, 2015 Share Posted January 28, 2015 Put it in the python module maybe? Not sure if it gets run too late though. 1 Quote Link to comment Share on other sites More sharing options...
wandersonp Posted January 28, 2015 Author Share Posted January 28, 2015 edward you are correct, if I need to put another piece of code, will be annoying have this code running over times. 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.