Skip to content

Script to generate stub files for Autodesk MotionBuilder's python pyfbsdk module

License

Notifications You must be signed in to change notification settings

nils-soderman/pyfbsdk-stub-generator

Repository files navigation

MotionBuilder pyfbsdk stub-file generator

Script for generating python stub files for Autodesk MotionBuilder's pyfbsdk module.

These stub files include all classes & functions that can be accessed through the pyfbsdk module. They also include type hints and docstrings for most entities.


Pre-generated files

The GitHub repository already contains some pre-generated stub files that are ready to be used, simply get them from the generated-stub-files folder:


Usage

Generate stub files

If you want to generate your own stub files for your MotionBuilder version:

  1. Install this package using pip:
pip install git+https://github.com/nils-soderman/pyfbsdk-stub-generator
  1. From within MotionBuilder, run:
import pyfbsdk_stub_generator

pyfbsdk_stub_generator.Generate(Directory = "C:/MyDirectory/")