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

Method __init__

python/IECore/ClassVectorParameter.py:42–49  ·  view source on GitHub ↗
( self, name, description, searchPathEnvVar, classes=[], userData=None )

Source from the content-addressed store, hash-verified

40class ClassVectorParameter( IECore.CompoundParameter ) :
41
42 def __init__( self, name, description, searchPathEnvVar, classes=[], userData=None ) :
43
44 IECore.CompoundParameter.__init__( self, name, description, userData=userData )
45
46 self.__searchPathEnvVar = searchPathEnvVar
47 self.__namesToInstances = {} # maps parameter names to [ classInstance, className, classVersion ] lists
48
49 self.setClasses( classes )
50
51 ## Returns the name of the environment variable which defines paths to search for child classes on.
52 def searchPathEnvVar( self ) :

Callers

nothing calls this directly

Calls 1

setClassesMethod · 0.95

Tested by

no test coverage detected