Search the Community
Showing results for tags 'wrangle python hipname cooking'.
-
Hello Houdini-Experts, this is my first post :/ I'm currently trying to setup Houdini in our company and try to create some cool setups to automatically create file cache paths and file names as well as render output paths and names. This all works very well. I also wanted to create a little Digital Asset, a "HUB" that exist in every scene that is supposed to get the file name ($HIPNAME), split it into certain string components and generate some variables that those file caches and render outputs can use. Everything works one time, when you open the scene. But if I for example save the file under a new name, let's say I version it up, it still keeps the old data and does not re-evaluate unless I change the script itself in the Attribute Wrangle. So my question is, how can I force to re-run or re-cook an wrangle node? Can I trigger that if a hip gets saved? It is just utterly inconvenient to ask the users to save a scene as a version up and have to close and re-open the scene to check if the file name is good and to make sure all the caches and render outputs have the right naming and versioning. More detail to what I am doing inside this "HUB": - I am create a point, just to hold some data as detail attributes. - I am using a Attribute Wrangle VEXpression (Detail attributes) to split the $HIPNAME into its components, like show name, episode number, shot name, element, version and so on. In our facility "_" are used to divide those so that was easy. - I am then depending on the format create attributes for each and store the values (strings for the names, integers for the version numbers) - Depending on the user input in the parameter interface it would use those or a custom name for each - then I used a little Python node to change the "HUB" color so that the user would see right away, if something is wrong with the file name (red) or if everything is just fine (green) -those resulting detail attributes will be read by file caches and compose the name from it I hope my questions are clear enough to get some hints of how I can force a script to re-evaluate. I wouldn't even mind a to use that "Update Shot Data" button that I created in my "HUB" parameter interface to trigger a re-run. Obviously doing this automatically after saving the scene would be huge! Thanks in advance, Stefan