I would like to share a small convenience tool for upversioning modified (unlocked) assets.
AFAIK the default workflow of creating new version of assets is to duplicate the asset first with a new version in its name and then do the changes.
This workflow however might be a bit counter-productive as people often do many experimental changes first and just then see if they will make it into newer version or not.
I used this workflow for some time until a friend at the university pointed it out that it of course does not make a sense and that it should be the other way around – do modification first and if satisfied, save as a new version.
This sparked my interest and as it turns out the tool to do exactly this thing can be easily and seamlessly added into Houdini with use of couple of Houdini HOM methods.
This post is quite related to a post I wrote about asset versioning workflow, you can check it if interested in more info about this topic.
To use the tool simply right-click on a unlocked asset and click on Save as New Version menu item.
After that enter the new name. You can use namespacing with :: and modify version number.
After confirming the tool is done. Your node will update to the new version which was just created with your changes. You can see the new version in version menu.
If you do not see Asset Name and Path menu, then enable it in Asset Manager.
To install this tool, simply create OPmenu.xml file somewhere with the following contents.
After that set directory location where this file is created in HOUDINI_MENU_PATH environment variable.
For example by adding this into your houdini.env file:
HOUDINI_MENU_PATH = /home/user/save_as_new_version_folder;&
That should be all 🙂 Happy versioning.