Sign inSign up

seguropus/fbx-sdk-python-nodejs

By seguropus

•Updated over 6 years ago

A container to run FBX SDK Python with Node.js

Image
0

1.4K

seguropus/fbx-sdk-python-nodejs repository overview

⁠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⁠)

Tag summary

Content type

Image

Digest

Size

224.5 MB

Last updated

over 6 years ago

docker pull seguropus/fbx-sdk-python-nodejs