Skip to content

Latest commit

 

History

History
57 lines (31 loc) · 2.26 KB

index.md

File metadata and controls

57 lines (31 loc) · 2.26 KB

MaterialXJSON

This is the home page for the materialxjson Python package which provides support to conversion to / from JSON of MaterialX documents.

graph LR;

MaterialX[ MaterialX <img src='https://kwokcb.github.io/materialxjson/images/MaterialX_logo.png' style='width: 32px' />] <-----> JSON[(JSON <img src='https://kwokcb.github.io/materialxjson/images/JSON_logo.svg' tyle='width: 322px' /> )]

MaterialX <-----> XML[( XML <img src='https://kwokcb.github.io/materialxjson/images/XML_logo.svg' style='width: 32px' /> )]
Loading

This package provides a JSON data representation that can fully represent a MaterialX document. The JSON representation is targeted at integrations which prefer to use JSON as a data exchange format instead of XML.

Package

The package can be downloaded from PyPi

Documentation

  • Python Package: Details about how to use this package can be found here.
  • API Documentation): Python interface documentation can be found here.

Integrations

Below is a snapshot from the QuiltiX plugin which uses this package:

.

Shown is the JSON text preview dialog which allows the user to view the JSON representation of the MaterialX document.

The plugin code is available as a sample which ships with QuiltiX here

Examples

A Jupyter notebook with examples can be found here.

The follow are the JSON representations for examples included with the package:

  • glTF "Shoe" Sample Model :
    JSON Graph
  • MaterialX "Standard Surface" material:
    JSON Graph

Repository