( self )
| 37 | class SequenceConvertOp( IECore.Op ) : |
| 38 | |
| 39 | def __init__( self ) : |
| 40 | |
| 41 | IECore.Op.__init__( self, |
| 42 | "This Op converts file sequences from one format to another. " |
| 43 | "It supports all input formats for which a reader is available " |
| 44 | "(" + " ".join( IECore.Reader.supportedExtensions() ) + ") and all output " |
| 45 | "formats for which a writer is available (" + " ".join( IECore.Reader.supportedExtensions() ) + "). " |
| 46 | "Because of it's general nature it doesn't support any additional options such as " |
| 47 | "compression types for image formats. Also please note that not all combinations are " |
| 48 | "possible - for instance you cannot convert an OBJ to a JPEG." |
| 49 | , |
| 50 | IECore.FileSequenceParameter( |
| 51 | name = "result", |
| 52 | description = "The new file sequence.", |
| 53 | defaultValue = "", |
| 54 | check = IECore.FileSequenceParameter.CheckType.DontCare, |
| 55 | allowEmptyString = True, |
| 56 | minSequenceSize = 1, |
| 57 | ) |
| 58 | ) |
| 59 | |
| 60 | self.parameters().addParameters( |
| 61 | [ |
| 62 | IECore.FileSequenceParameter( |
| 63 | name = "src", |
| 64 | description = "The source file sequence.", |
| 65 | defaultValue = "", |
| 66 | check = IECore.FileSequenceParameter.CheckType.MustExist, |
| 67 | allowEmptyString = False, |
| 68 | extensions = IECore.Reader.supportedExtensions(), |
| 69 | minSequenceSize = 1, |
| 70 | ), |
| 71 | IECore.FileSequenceParameter( |
| 72 | name = "dst", |
| 73 | description = "The destination file sequence.", |
| 74 | defaultValue = "", |
| 75 | check = IECore.FileSequenceParameter.CheckType.MustNotExist, |
| 76 | allowEmptyString = False, |
| 77 | extensions = IECore.Writer.supportedExtensions(), |
| 78 | minSequenceSize = 1, |
| 79 | ) |
| 80 | ] |
| 81 | ) |
| 82 | |
| 83 | def doOperation( self, operands ) : |
| 84 |
nothing calls this directly
no test coverage detected