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

Method __init__

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

Source from the content-addressed store, hash-verified

40class SequenceLsOp( IECore.Op ) :
41
42 def __init__( self ) :
43
44 IECore.Op.__init__( self, "Lists file sequences.",
45 IECore.Parameter(
46 name = "result",
47 description = "A list of matching sequences.",
48 defaultValue = IECore.StringVectorData()
49 )
50 )
51
52 self.userData()["UI"] = IECore.CompoundObject(
53 {
54 "showResult": IECore.BoolData( True ),
55 }
56 )
57
58 self.parameters().addParameters(
59 [
60 IECore.DirNameParameter(
61 name = "dir",
62 description = "The directory to look for sequences in.",
63 defaultValue = "./",
64 check = IECore.DirNameParameter.CheckType.MustExist,
65 allowEmptyString = False,
66 ),
67 IECore.BoolParameter(
68 name = "recurse",
69 description = "When on, recursively searches all subdirectories for sequences.",
70 defaultValue = False,
71 ),
72 IECore.BoolParameter(
73 name = "followLinks",
74 description = "When on, follow symbolic links during directory traversal.",
75 defaultValue = False,
76 ),
77 IECore.IntParameter(
78 name = "maxDepth",
79 description = "The maximum depth to recursion - this can be used to prevent accidental traversing of huge hierarchies.",
80 defaultValue = 1000,
81 minValue = 1,
82 ),
83 IECore.IntParameter(
84 name = "minSequenceSize",
85 description = "The minimum number of files to be considered a sequence",
86 defaultValue = 2,
87 minValue = 1,
88 ),
89 IECore.StringParameter(
90 name = "type",
91 description = "The file types of the sequences to classify.",
92 defaultValue = "any",
93 presets = (
94 ( "files", "files" ),
95 ( "directories", "directories" ),
96 ( "any", "any" )
97 ),
98 presetsOnly = True,
99 ),

Callers

nothing calls this directly

Calls 7

CompoundObjectMethod · 0.80
addParametersMethod · 0.80
DirNameParameterMethod · 0.80
CompoundParameterMethod · 0.80
ParameterMethod · 0.45
userDataMethod · 0.45
parametersMethod · 0.45

Tested by

no test coverage detected