Darkster Posted May 8, 2014 Share Posted May 8, 2014 Is there a way to store scene specific variables? If I use environment varaibles, they persist across the houdini session and are visible when I create a new scene. Another problem, if I create a geometry node, and put this bit of code in the Python Source Editor (so it runs when the scene is opened) import hou parm = hou.parm("/obj/geo1/file1/file") print parm.name() It gives me a "`NoneType` object has no attribute name" error. It looks to me like it's trying to find a parameter before it exists. Is there a way to make the script run AFTER the scene has been cooked? I need to evaluate some parameters & store their values in scene specific varaibles so I can compare the values next time I open the scene. (I'm creating a version manager which, when the scene is opened, checks if there any new versions in the folder the parameter is looking at) Quote Link to comment Share on other sites More sharing options...
edward Posted May 9, 2014 Share Posted May 9, 2014 Create an asset that doesn't lock its child contents. I think now you can put your python code into is On Load script. Quote Link to comment Share on other sites More sharing options...
Darkster Posted May 9, 2014 Author Share Posted May 9, 2014 I would like to avoid creating additional nodes. While it should load properly and store data nicely, it's a extra node floating around which the user can then delete or break. (unless there's a way to hide the node) I'll do this in the meantime though, until a better solution arises. 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.