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

Method __init__

python/IECore/SequenceMergeOp.py:43–86  ·  view source on GitHub ↗
( self, description, extensions = [] )

Source from the content-addressed store, hash-verified

41class SequenceMergeOp( IECore.Op ) :
42
43 def __init__( self, description, extensions = [] ) :
44
45 assert( type( extensions ) is list )
46
47 IECore.Op.__init__(
48 self,
49 description,
50 IECore.StringVectorParameter(
51 name = "result",
52 description = "The names of the files created",
53 defaultValue = IECore.StringVectorData([])
54 )
55 )
56
57 self.parameters().addParameters(
58 [
59 IECore.FileSequenceParameter(
60 name = "fileSequence1",
61 description = "The first input sequence",
62 defaultValue = "",
63 check = IECore.FileSequenceParameter.CheckType.MustExist,
64 allowEmptyString = False,
65 extensions = extensions,
66 minSequenceSize = 1,
67 ),
68 IECore.FileSequenceParameter(
69 name = "fileSequence2",
70 description = "The second input sequence",
71 defaultValue = "",
72 check = IECore.FileSequenceParameter.CheckType.MustExist,
73 allowEmptyString = False,
74 extensions = extensions,
75 minSequenceSize = 1,
76 ),
77 IECore.FileSequenceParameter(
78 name = "outputFileSequence",
79 description = "The output file sequence to generate. For each frame in this sequence, the corresponding inputs for that frame are merged",
80 defaultValue = "",
81 allowEmptyString = False,
82 check = IECore.FileSequenceParameter.CheckType.MustNotExist,
83 minSequenceSize = 1,
84 ),
85 ]
86 )
87
88 # Derived classes should override this method, and merge the files given in "fileName1" and "fileName2" into "outputFileName",
89 # returning True on success or False on failure.

Callers

nothing calls this directly

Calls 4

typeFunction · 0.85
addParametersMethod · 0.80
FileSequenceParameterMethod · 0.80
parametersMethod · 0.45

Tested by

no test coverage detected