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
Fields inherited from class org.nuxeo.ecm.platform.convert.plugins.CommandLineBasedConverter
CMD_NAME_PARAMETER, initParameters, TMP_PATH_PARAMETER
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionblobsToTempDir
(BlobHolder blobHolder, Path directory) protected BlobHolder
buildResult
(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 Path
getScriptWith
(List<String> operators) Returns the absolute path to the main script (main and pipeline scripts).protected boolean
isThreeDFile
(File file) sortFilesToPaths
(List<File> files) From a list of files, sort by file name and return a stream of file paths.protected Path
tempDirectory
(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 neededoperators
script to the filesystem if missing.- Throws:
IOException
-
convert
public BlobHolder convert(BlobHolder blobHolder, Map<String, Serializable> parameters) throws ConversionExceptionDescription copied from interface:Converter
Main method to handle the real Conversion Job.Returned
BlobHolder
must implementCachableBlobHolder
, otherwise result won't be cached.- Specified by:
convert
in interfaceConverter
- Overrides:
convert
in classCommandLineBasedConverter
- Throws:
ConversionException
-
getConversionLOD
-
getRenders
-
getInfos
-
buildResult
protected BlobHolder buildResult(List<String> cmdOutput, CmdParameters cmdParams) throws ConversionException Description copied from class:CommandLineBasedConverter
Builds result from commandLine output buffer.- Specified by:
buildResult
in classCommandLineBasedConverter
- Throws:
ConversionException
-