Skip to main content

A Flask-based application for MaterialX conversion utilities.

Project description

Python Materialx Conversion Application

This sample package shows the basic components required to connect MaterialX running in Python to a Web client running Javascript in order to run conversion or rendering applications.

Server-side rendering using MaterialXView Server-side conversion from MaterialX to USD and glTF (top and bottom respectively)

Dependents

The following packages are installed by default as part of the pip installation.

  • flask and flask-socketio: Python packages for Flask support

  • socket-io: For Javascript WebSocket support

  • usd-core: for OpenUSD conversion. Different versions can be downloaded explicitly from PyPi. The assumed minimum version is 24.11.

  • MaterialX : Different versions can be downloaded explicitly from PyPi. The assumed minimum version is 1.38.10.

  • gltf_materialx_converter: MaterialX glTF Convertor Python library. Note that this is not available on PyPi currently so the Github repository must be cloned and the package locally installed.

Rendering depends on the environment variable: MATERIALX_DEFAULT_VIEWER being set to the location of the MaterialXView binary. This is part of the MaterialX release distribution as found here

Installation

Either install the package from PyPi:

pip install materialx_conversion_app

or clone the materialXWeb repository and install from the root folder:

pip install .

or

pip install -e .

if planning to perform edits on the repository.

Execution

Run the main package using:

materialx_conversion_app

or directly with Python:

python MaterialXConversionApp.py

By default the application is running a local server. To access the client page open the following in a Web browser:

http://127.0.0.1:8080

Deployment

This application is not currently deployed on any platform, though it should run properly with the exception of rendering in a Render container.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

materialx_conversion_app-1.39.5.tar.gz (2.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

materialx_conversion_app-1.39.5-py3-none-any.whl (2.9 kB view details)

Uploaded Python 3

File details

Details for the file materialx_conversion_app-1.39.5.tar.gz.

File metadata

File hashes

Hashes for materialx_conversion_app-1.39.5.tar.gz
Algorithm Hash digest
SHA256 b0df70dcbd2f24783317551465aac63afc9b1e0c8dea5e327675e418b3263376
MD5 7db99ed90b62de29c5957c11f5081d08
BLAKE2b-256 dae3bbdc8e7e70a4f45ee2a462a08136bea975160ef8922f0e0a728c6291094d

See more details on using hashes here.

File details

Details for the file materialx_conversion_app-1.39.5-py3-none-any.whl.

File metadata

File hashes

Hashes for materialx_conversion_app-1.39.5-py3-none-any.whl
Algorithm Hash digest
SHA256 d7aa31ad4a9cfdedba4f363fbb4d5c50c3de68ac5d1445be9ae6d5e2c2016fb7
MD5 5735b466ce575b82520b6ad427034aee
BLAKE2b-256 7bb56bf180fdce16303c788306110d207572c19308d661394ce7abc14de37efb

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page