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

Method __init__

python/IECore/SequenceRenumberOp.py:39–81  ·  view source on GitHub ↗
( self )

Source from the content-addressed store, hash-verified

37class SequenceRenumberOp( IECore.Op ) :
38
39 def __init__( self ) :
40
41 IECore.Op.__init__( self, "Renumbers file sequences.",
42 IECore.FileSequenceParameter(
43 name = "result",
44 description = "The new file sequence.",
45 defaultValue = "",
46 check = IECore.FileSequenceParameter.CheckType.DontCare,
47 allowEmptyString = True,
48 minSequenceSize = 1,
49 )
50 )
51
52 self.parameters().addParameters(
53 [
54 IECore.FileSequenceParameter(
55 name = "src",
56 description = "The source file sequence.",
57 defaultValue = "",
58 check = IECore.FileSequenceParameter.CheckType.MustExist,
59 allowEmptyString = False,
60 minSequenceSize = 1,
61 ),
62 IECore.FileSequenceParameter(
63 name = "dst",
64 description = "The destination file sequence. This may be left blank, in which case the source sequence is renumbered in place.",
65 defaultValue = "",
66 check = IECore.FileSequenceParameter.CheckType.DontCare,
67 allowEmptyString = True,
68 minSequenceSize = 1,
69 ),
70 IECore.IntParameter(
71 name = "multiply",
72 description = "A number multiplied with each frame number before offsetting.",
73 defaultValue = 1,
74 ),
75 IECore.IntParameter(
76 name = "offset",
77 description = "A number added to each frame number after multiplication.",
78 defaultValue = 0,
79 ),
80 ]
81 )
82
83 def doOperation( self, operands ) :
84

Callers

nothing calls this directly

Calls 3

FileSequenceParameterMethod · 0.80
addParametersMethod · 0.80
parametersMethod · 0.45

Tested by

no test coverage detected