MCPcopy Create free account
hub / github.com/ImageEngine/cortex / metadata

Method metadata

python/IECore/BasicPreset.py:134–143  ·  view source on GitHub ↗
( self )

Source from the content-addressed store, hash-verified

132 ## "categories" : ( string, .. ), A list of strings, one for each category
133 ## the preset is considered part of.
134 def metadata( self ) :
135
136 self._ensureHeader()
137
138 h = self._header
139 return {
140 "title" : h["title"].value if "title" in h else self.__class__,
141 "description" : h["description"].value if "description" in h else "",
142 "categories" : list( h["categories"] ) if "categories" in h else (),
143 }
144
145 ## \see IECore.Preset.applicableTo
146 def applicableTo( self, parameterised, rootParameter ) :

Callers

nothing calls this directly

Calls 1

_ensureHeaderMethod · 0.95

Tested by

no test coverage detected