Class BaseBlenderConverter
java.lang.Object
org.nuxeo.ecm.platform.convert.plugins.CommandLineBasedConverter
org.nuxeo.ecm.platform.threed.convert.BaseBlenderConverter
- All Implemented Interfaces:
Converter,ExternalConverter
- Direct Known Subclasses:
BatchConverter,ColladaConverter,LodsConverter,RenderConverter
Base converter for blender pipeline. Processes scripts for operators and input blobs
- Since:
- 8.4
-
Nested Class Summary
Nested classes/interfaces inherited from class org.nuxeo.ecm.platform.convert.plugins.CommandLineBasedConverter
CommandLineBasedConverter.CmdReturn -
Field Summary
FieldsFields inherited from class org.nuxeo.ecm.platform.convert.plugins.CommandLineBasedConverter
CMD_NAME_PARAMETER, initParameters, TMP_PATH_PARAMETER -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionblobsToTempDir(BlobHolder blobHolder, Path directory) protected BlobHolderbuildResult(List<String> cmdOutput, CmdParameters cmdParams) Builds result from commandLine output buffer.convert(BlobHolder blobHolder, Map<String, Serializable> parameters) Main method to handle the real Conversion Job.getConversionLOD(String outDir) getRenders(String outDir) protected PathgetScriptWith(List<String> operators) Returns the absolute path to the main script (main and pipeline scripts).protected booleanisThreeDFile(File file) sortFilesToPaths(List<File> files) From a list of files, sort by file name and return a stream of file paths.protected PathtempDirectory(Map<String, Serializable> parameters, String sufix) Methods inherited from class org.nuxeo.ecm.platform.convert.plugins.CommandLineBasedConverter
execOnBlob, getCmdBlobParameters, getCmdStringParameters, getCommandName, getTmpDirectory, init, isConverterAvailable
-
Field Details
-
MIMETYPE_ZIP
- See Also:
-
-
Constructor Details
-
BaseBlenderConverter
public BaseBlenderConverter()
-
-
Method Details
-
tempDirectory
protected Path tempDirectory(Map<String, Serializable> parameters, String sufix) throws ConversionException- Throws:
ConversionException
-
isThreeDFile
-
sortFilesToPaths
From a list of files, sort by file name and return a stream of file paths. -
blobsToTempDir
- Throws:
IOException
-
getScriptWith
Returns the absolute path to the main script (main and pipeline scripts). Copies the script to the filesystem if needed. Copies neededoperatorsscript to the filesystem if missing.- Throws:
IOException
-
convert
public BlobHolder convert(BlobHolder blobHolder, Map<String, Serializable> parameters) throws ConversionExceptionDescription copied from interface:ConverterMain method to handle the real Conversion Job.Returned
BlobHoldermust implementCachableBlobHolder, otherwise result won't be cached.- Specified by:
convertin interfaceConverter- Overrides:
convertin classCommandLineBasedConverter- Throws:
ConversionException
-
getConversionLOD
-
getRenders
-
getInfos
-
buildResult
protected BlobHolder buildResult(List<String> cmdOutput, CmdParameters cmdParams) throws ConversionException Description copied from class:CommandLineBasedConverterBuilds result from commandLine output buffer.- Specified by:
buildResultin classCommandLineBasedConverter- Throws:
ConversionException
-