Panda3D BAM file parser library
p3bamboo is a Python library that gives you full access to a Panda3D BAM file's inner structure.
Simply install p3bamboo using
python -m pip install p3bamboo
Loading a BAM file is very simple:
from p3bamboo.BamFile import BamFile
bam = BamFile()
with open('myModel.bam', 'rb') as f:
Writing out a BAM file is also easy:
with open('newModel.bam', 'wb') as f:
To automatically deserialize BAM objects, you must register your own custom BAM object types. For example, to register an object type named
from p3bamboo.BamFactory import BamFactory
from myproject.Texture import Texture
If you register your object types properly and load a BAM file afterwards, you'll be able to access your objects using
Release history Release notifications | RSS feed
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.