An asset exchange protocol implementation used by Asset Ninja.
# prerequisites
# npm and npx
brew install node
brew install coreutils
# pack extensions
cd ./py
./dist_exts.sh
# list pack result
ls -l ./dist
# prerequisites
# npm and npx
brew install node
# pack library for embedding (example commands for Maya)
cd ./py
./dist_lib.sh maya myproduct_assetexchange $HOME/dev/myproduct/assetexchange.py
This is how you can use the packed library:
# Step 1: import the packed assetexchange.py
from . import assetexchange
# Step 2: now you can import the modules contained in the packed library
import myproduct_assetexchange.assetexchange_maya as assetexchange_maya
# ...