Skip to content

segurvita/docker-fbx-sdk-python-nodejs

Repository files navigation

docker-fbx-sdk-python-nodejs

Language: English | 日本語
A docker image to run FBX SDK Python with Node.js.

This docker image is published on Docker Hub below. https://hub.docker.com/r/seguropus/fbx-sdk-python-nodejs

How to use sample code of GitHub

# Make docker image
docker-compose build

# Execute docker container
docker-compose up

You can get list of file formats which FBX SDK can read.

How to use docker image

# download from docker hub
docker pull seguropus/fbx-sdk-python-nodejs:latest

# execute container
docker run -it seguropus/fbx-sdk-python-nodejs:latest /bin/ash

How to use FBX SDK from Python

FBX SDK has been already installed in the docker image. You can use like below.

from fbx import *
manager = FbxManager.Create()

How to use Python from Node.js

python-shell has been already installed in the docker image. You can use like below.

const pythonShell = require('python-shell');
const pyOption = {
    pythonPath: '/usr/local/bin/python',
}
const pyShell = new pythonShell.PythonShell('main.py', pyOption);
pyShell.on('message', (message) => {
    console.log(message);
});

Licensing

The FBX SDK Python is under Autodesk License (see License.txt)

About

A container to run FBX SDK Python with Node.js

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published