MaterialXWeb 0.0.2
Utilities for using MaterialX Packages with Web clients
Loading...
Searching...
No Matches
materialx_ocio_app.py File Reference

PYTHON_APP_DESCRIPTION More...

Go to the source code of this file.

Classes

class  materialx_ocio_app.MaterialXFlaskApp
 
class  materialx_ocio_app.materialx_ocio_app
 

Functions

 materialx_ocio_app.main ()
 

Detailed Description

PYTHON_APP_DESCRIPTION

Definition in file materialx_ocio_app.py.

Function Documentation

◆ main()

materialx_ocio_app.main ( )

Definition at line 216 of file materialx_ocio_app.py.

216def main():
217 parser = argparse.ArgumentParser(description="Application to use the OCIO package to extract out configuration information and generate MaterialX definitions")
218 parser.add_argument('--host', type=str, default='127.0.0.1', help="Host address to run the server on (default: 127.0.0.1)")
219 parser.add_argument('--port', type=int, default=5002, help="Port to run the server on (default: 5002)")
220 parser.add_argument('--home', type=str, default='materialx_ocio_app.html', help="Home page.")
221
222 args = parser.parse_args()
223
224 app = materialx_ocio_app(args.home)
225 app_host = args.host
226 app_port = args.port
227 app.run(host=app_host, port=app_port)
228