vfx-rs / usd-bind

Rust bindings for Pixar's Universal Scene Description (USD)
47 stars 3 forks source link

Getting started

Make sure you have cppmm built/working. https://github.com/vfx-rs/cppmm

Build usd 21.11

Then run bash bind.sh.

Finally build the rust bindings.

env LD_LIBRARY_PATH=${USD_ROOT}/lib CMAKE_PREFIX_PATH=${USD_ROOT} cargo test

You should be good to go after this.

Checklist

Supported value types in VtValue.

Some types have scalar support but no array, those are marked as not done.

Running genbind

genbind.py -v 2 --namespace pxrInternal_v0_20pxrReserved --namespace-internal PXR_INTERNAL_NS --namespace-public pxr -a "-I/home/anders/packages/usd/20.05/include" -a "-I/home/anders/packages/boost/1.70.0/include" -a "-I/usr/include/python2.7" -a "-Wno-deprecated-register" -o bind -f /home/anders/packages/usd/20.05/include/pxr/usd/usdGeom/sphere.h