Website powered by

USD format batch conversion

WHAT

This is a small, stand-alone, utility tool written in Python for Windows that allows you to batch convert between Pixar USD binary and ASCII formats. Under the hood it employs Houdini hython and the native USD support in Houdini Solaris, so Houdini 18 is required, and also at least an Indie license — in order to write out .usda file format.

A compiled .exe is also provided for ease of use.

WHY

Pixar USD is super exciting and powerful. And Houdini Solaris is, too! While learning USD, there are several very good, official, examples — the Kitchen set and Shopfront — either by Pixar or by SideFX, but unfortunately they are all provided in USD binary — thus obviously not human-readable — format (named the crate format). So in the process of learning, I found myself wanting to be able to decipher more how each part in those USD files contributes to the final scene composition. Of course one can always take advantage of the displayed USD scene graph either in usdview or in Solaris, or take advantage of the LOPs code in Solaris, but I believe the ability to read the .usda (as text file) would be extremely helpful and eye-opening.

Luckily Pixar already provides "usdcat" — an utility in their USD toolset — which allows for convenient conversion among .usda, .usdb, and .usdc formats. Just some small catches:

  1. We would want to convert multiple files. The kitchen example has 230 USD files. It's great that usdcat accepts multi-file input, but the idea of manually passing hundreds of file paths as command arguments sounds not so fun.
  2. Though very likely an outlier case and a rather subpar practice, in case you also want to change the file extensions during conversion, e.g. from .usdc to .usda and vice versa, then you would then also need to tweak the references in the USD file content in order to have the USD asset resolution working. For example, after our binary to ASCII conversion, all lines that have "@/any_asset.usd@" in the resulted files must also be changed to "@/any_asset.usda@"

This poses a great opportunity for a simple batch conversion tool, hence our mk_usdcat_all!

Read more about how to use the tool here: https://github.com/mushogenshin/mk_usdcat_all 

Standard Use License
$0
License: Standard License
Stock Assets

For personal use and one commercial project (up to 2,000 sales or 20,000 views).

Tutorials

One copy to be used by a single user.

Installable Tools

One installation by a single user.

Learn More
Files (1)
mk_usdcat_all_download_link
txt /
79 Bytes