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

Method __init__

python/IECore/ClassLsOp.py:42–91  ·  view source on GitHub ↗
( self )

Source from the content-addressed store, hash-verified

40class ClassLsOp( IECore.Op ) :
41
42 def __init__( self ) :
43
44 IECore.Op.__init__( self, "Lists installed classes which can be loaded with IECore.ClassLoader.",
45 IECore.Parameter(
46 name = "result",
47 description = "A list of classes.",
48 defaultValue = IECore.StringVectorData()
49 )
50 )
51
52 self.parameters().addParameters(
53 [
54 IECore.StringParameter(
55 name = "type",
56 description = "The type of class to list.",
57 defaultValue = "op",
58 presets = (
59 ( "Op", "op" ),
60 ( "Other", "other" ),
61 ),
62 presetsOnly = True,
63 ),
64 IECore.StringParameter(
65 name = "match",
66 description = "A glob style match string used to list only a subset of classes.",
67 defaultValue = "*",
68 ),
69 IECore.StringParameter(
70 name = "searchPath",
71 description = "When type is set to \"other\", this specifies a colon separated list of paths to search for classes on.",
72 defaultValue = "",
73 ),
74 IECore.StringParameter(
75 name = "searchPathEnvVar",
76 description = "When type is set to \"other\", this specifies an environment variable "
77 "specifying a list of paths to search for classes on.",
78 defaultValue = "",
79 ),
80 IECore.StringParameter(
81 name = "resultType",
82 description = "The format of the result",
83 defaultValue = "string",
84 presets = (
85 ( "string", "string" ),
86 ( "stringVector", "stringVector" ),
87 ),
88 presetsOnly = True,
89 )
90 ]
91 )
92
93 def doOperation( self, operands ) :
94

Callers

nothing calls this directly

Calls 3

addParametersMethod · 0.80
ParameterMethod · 0.45
parametersMethod · 0.45

Tested by

no test coverage detected