MCPcopy Create free account
hub / github.com/AcademySoftwareFoundation/MaterialX / create

Method create

python/Scripts/comparenodedefs.py:157–164  ·  view source on GitHub ↗

Create a NodeSignature from input/output dicts of name -> type.

(cls, inputs, outputs)

Source from the content-addressed store, hash-verified

155
156 @classmethod
157 def create(cls, inputs, outputs):
158 '''Create a NodeSignature from input/output dicts of name -> type.'''
159 return cls(
160 inputs=tuple(sorted(inputs.items())),
161 outputs=tuple(sorted(outputs.items())),
162 _displayInputs=tuple(inputs.items()),
163 _displayOutputs=tuple(outputs.items()),
164 )
165
166 def __hash__(self):
167 return hash((self.inputs, self.outputs))

Callers 9

test_ShaderInterfaceMethod · 0.45
mainFunction · 0.45
expandSpecSignaturesFunction · 0.45
loadDataLibraryFunction · 0.45
mainFunction · 0.45
loadImageMethod · 0.45
saveImageMethod · 0.45
test_load_saveFunction · 0.45
mainFunction · 0.45

Calls 1

tupleClass · 0.85

Tested by 2

test_ShaderInterfaceMethod · 0.36
test_load_saveFunction · 0.36