Class for holding options for writing MaterialX to JSON.
More...
Class for holding options for writing MaterialX to JSON.
Options:
- elementPredicate: MaterialX function predicate for filtering elements to write
- indent: The number of spaces to indent the JSON hierarchy
- separators: JSON separators. Default is: (',', ': ')
- addInputOutputCategories: Add input and output categories to JSON elements. Default is False
Definition at line 31 of file core.py.
◆ __init__()
materialxjson.core.JsonWriteOptions.__init__ |
( |
| self | ) |
|
Constructor.
Definition at line 41 of file core.py.
41 def __init__(self):
42 '''
43 @brief Constructor
44 '''
45 self.elementPredicate: mx.ElementPredicate = None
46 self.indent = None
47 self.separators = (',', ': ')
48 self.addInputOutputCategories = True
49
◆ addInputOutputCategories
bool materialxjson.core.JsonWriteOptions.addInputOutputCategories = True |
◆ elementPredicate
mx.ElementPredicate materialxjson.core.JsonWriteOptions.elementPredicate = None |
◆ indent
materialxjson.core.JsonWriteOptions.indent = None |
◆ separators
tuple materialxjson.core.JsonWriteOptions.separators = (',', ': ') |
The documentation for this class was generated from the following file: