Platform Explorer / Nuxeo Platform 9.2

Contribution org.nuxeo.ecm.platform.threed.convert.converters--converter

This contribution is part of XML component org.nuxeo.ecm.platform.threed.convert.converters inside nuxeo-platform-3d-convert-9.2.jar /OSGI-INF/convert-service-contrib.xml

Extension Point

Extension point converter of component ConversionServiceImpl.

Contributed Items

  • <converter class="org.nuxeo.ecm.platform.threed.convert.RenderConverter" name="render3D">
          <sourceMimeType>*</sourceMimeType>
          <destinationMimeType>image/png</destinationMimeType>
          <parameters>
            <parameter name="CommandLineName">blender_pipeline</parameter>
            <parameter name="scriptsDir">scripts</parameter>
            <parameter name="scriptFile">pipeline.py</parameter>
            <parameter name="operators">import info render</parameter>
            <parameter name="dimensions">800x600</parameter>
            <parameter name="coords">0,0</parameter>
          </parameters>
        </converter>
  • <converter class="org.nuxeo.ecm.platform.threed.convert.LodsConverter" name="lodConversion">
          <sourceMimeType>*</sourceMimeType>
          <destinationMimeType>model/vnd.collada+xml</destinationMimeType>
          <parameters>
            <parameter name="CommandLineName">blender_pipeline</parameter>
            <parameter name="scriptsDir">scripts</parameter>
            <parameter name="scriptFile">pipeline.py</parameter>
            <parameter name="operators">import info lod info convert lod info convert lod info convert</parameter>
            <parameter name="lodIds">33 11 03</parameter>
            <parameter name="percPoly">33 11 3</parameter>
            <parameter name="percTex">33 11 3</parameter>
            <parameter name="maxPoly">1000000 null null</parameter>
            <parameter name="maxTex">4000x4000 null null</parameter>
          </parameters>
        </converter>
  • <converter class="org.nuxeo.ecm.platform.threed.convert.ColladaConverter" name="colladaConversion">
          <sourceMimeType>*</sourceMimeType>
          <destinationMimeType>model/vnd.collada+xml</destinationMimeType>
          <parameters>
            <parameter name="CommandLineName">blender_pipeline</parameter>
            <parameter name="scriptsDir">scripts</parameter>
            <parameter name="scriptFile">pipeline.py</parameter>
            <parameter name="operators">import convert</parameter>
          </parameters>
        </converter>
  • <converter class="org.nuxeo.ecm.platform.threed.convert.BatchConverter" name="batchConversion">
          <sourceMimeType>*</sourceMimeType>
          <destinationMimeType>*</destinationMimeType>
          <parameters>
            <parameter name="CommandLineName">blender_pipeline</parameter>
            <parameter name="scriptsDir">scripts</parameter>
            <parameter name="scriptFile">pipeline.py</parameter>
            <parameter name="operators">import info render render lod info convert lod info convert lod info convert</parameter>
            <parameter name="lodIds">33 11 03</parameter>
            <parameter name="percPoly">33 11 3</parameter>
            <parameter name="percTex">33 11 3</parameter>
            <parameter name="maxPoly">1000000 null null</parameter>
            <parameter name="maxTex">4000x4000 null null</parameter>
            <parameter name="dimensions">800x600 800x600</parameter>
            <parameter name="coords">0,0 90,0</parameter>
          </parameters>
        </converter>
  • <converter class="org.nuxeo.ecm.platform.threed.convert.Collada2glTFConverter" name="dae2gltf">
          <sourceMimeType>model/vnd.collada+xml</sourceMimeType>
          <destinationMimeType>model/gltf+json</destinationMimeType>
          <parameters>
            <parameter name="CommandLineName">collada2gltlf</parameter>
          </parameters>
        </converter>

XML Source

<extension point="converter" target="org.nuxeo.ecm.core.convert.service.ConversionServiceImpl">
    <converter class="org.nuxeo.ecm.platform.threed.convert.RenderConverter" name="render3D">
      <sourceMimeType>*</sourceMimeType>
      <destinationMimeType>image/png</destinationMimeType>
      <parameters>
        <parameter name="CommandLineName">blender_pipeline</parameter>
        <parameter name="scriptsDir">scripts</parameter>
        <parameter name="scriptFile">pipeline.py</parameter>
        <parameter name="operators">import info render</parameter>
        <parameter name="dimensions">800x600</parameter>
        <parameter name="coords">0,0</parameter>
      </parameters>
    </converter>
    <converter class="org.nuxeo.ecm.platform.threed.convert.LodsConverter" name="lodConversion">
      <sourceMimeType>*</sourceMimeType>
      <destinationMimeType>model/vnd.collada+xml</destinationMimeType>
      <parameters>
        <parameter name="CommandLineName">blender_pipeline</parameter>
        <parameter name="scriptsDir">scripts</parameter>
        <parameter name="scriptFile">pipeline.py</parameter>
        <parameter name="operators">import info lod info convert lod info convert lod info convert</parameter>
        <parameter name="lodIds">33 11 03</parameter>
        <parameter name="percPoly">33 11 3</parameter>
        <parameter name="percTex">33 11 3</parameter>
        <parameter name="maxPoly">1000000 null null</parameter>
        <parameter name="maxTex">4000x4000 null null</parameter>
      </parameters>
    </converter>
    <converter class="org.nuxeo.ecm.platform.threed.convert.ColladaConverter" name="colladaConversion">
      <sourceMimeType>*</sourceMimeType>
      <destinationMimeType>model/vnd.collada+xml</destinationMimeType>
      <parameters>
        <parameter name="CommandLineName">blender_pipeline</parameter>
        <parameter name="scriptsDir">scripts</parameter>
        <parameter name="scriptFile">pipeline.py</parameter>
        <parameter name="operators">import convert</parameter>
      </parameters>
    </converter>
    <converter class="org.nuxeo.ecm.platform.threed.convert.BatchConverter" name="batchConversion">
      <sourceMimeType>*</sourceMimeType>
      <destinationMimeType>*</destinationMimeType>
      <parameters>
        <parameter name="CommandLineName">blender_pipeline</parameter>
        <parameter name="scriptsDir">scripts</parameter>
        <parameter name="scriptFile">pipeline.py</parameter>
        <parameter name="operators">import info render render lod info convert lod info convert lod info convert</parameter>
        <parameter name="lodIds">33 11 03</parameter>
        <parameter name="percPoly">33 11 3</parameter>
        <parameter name="percTex">33 11 3</parameter>
        <parameter name="maxPoly">1000000 null null</parameter>
        <parameter name="maxTex">4000x4000 null null</parameter>
        <parameter name="dimensions">800x600 800x600</parameter>
        <parameter name="coords">0,0 90,0</parameter>
      </parameters>
    </converter>
    <converter class="org.nuxeo.ecm.platform.threed.convert.Collada2glTFConverter" name="dae2gltf">
      <sourceMimeType>model/vnd.collada+xml</sourceMimeType>
      <destinationMimeType>model/gltf+json</destinationMimeType>
      <parameters>
        <parameter name="CommandLineName">collada2gltlf</parameter>
      </parameters>
    </converter>
  </extension>