Houdini tip | Save modified asset as new version

Hello,
I would like to share a small convenience tool for upversioning modified (unlocked) assets.

save_as_new_version
Tool in right-click menu of an unlocked asset

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.

 

Usage

 

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.

new_name
Entering new version number: 9.8

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.

version_select
The latest version which was just created

If you do not see Asset Name and Path menu, then enable it in Asset Manager.

display_menu
Enable Asset Bar for easy version selection

Installation

 

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.

Advertisements
Houdini tip | Save modified asset as new version