Class FbxSaveOptions


  • public class FbxSaveOptions
    extends SaveOptions
    Save options for Fbx file.
    • Constructor Detail

      • FbxSaveOptions

        public FbxSaveOptions​(FileContentType contentType)
        Initialize a FbxSaveOptions using latest supported version.
        Parameters:
        contentType -
    • Method Detail

      • getReusePrimitiveMesh

        public boolean getReusePrimitiveMesh()
        Reuse the mesh for the primitives with same parameters, this will significantly reduce the size of FBX output which scene was constructed by large set of primitive shapes(like imported from CAD files). Default value is false
      • setReusePrimitiveMesh

        public void setReusePrimitiveMesh​(boolean value)
        Reuse the mesh for the primitives with same parameters, this will significantly reduce the size of FBX output which scene was constructed by large set of primitive shapes(like imported from CAD files). Default value is false
        Parameters:
        value - New value
      • getEnableCompression

        public boolean getEnableCompression()
        Compression large binary data in the FBX file(e.g. animation data, control points, vertex element data, indices), default value is true.
      • setEnableCompression

        public void setEnableCompression​(boolean value)
        Compression large binary data in the FBX file(e.g. animation data, control points, vertex element data, indices), default value is true.
        Parameters:
        value - New value
      • getFoldRepeatedCurveData

        public java.lang.Boolean getFoldRepeatedCurveData()
        Gets whether reuse repeated curve data by increasing last data's ref count
      • setFoldRepeatedCurveData

        public void setFoldRepeatedCurveData​(java.lang.Boolean value)
        Sets whether reuse repeated curve data by increasing last data's ref count
        Parameters:
        value - New value
      • getExportLegacyMaterialProperties

        public boolean getExportLegacyMaterialProperties()
        Gets whether export legacy material properties, used for back compatibility. This option is turned on by default.
      • setExportLegacyMaterialProperties

        public void setExportLegacyMaterialProperties​(boolean value)
        Sets whether export legacy material properties, used for back compatibility. This option is turned on by default.
        Parameters:
        value - New value
      • getVideoForTexture

        public boolean getVideoForTexture()
        Gets whether generate a Video instance for Texture when exporting as FBX.
      • setVideoForTexture

        public void setVideoForTexture​(boolean value)
        Sets whether generate a Video instance for Texture when exporting as FBX.
        Parameters:
        value - New value
      • getEmbedTextures

        public boolean getEmbedTextures()
        Gets whether to embed the texture to the final output file. FBX Exporter will try to find the texture's raw data from IOConfig.getFileSystem(), and embed the file to final FBX file. Default value is false.
      • setEmbedTextures

        public void setEmbedTextures​(boolean value)
        Sets whether to embed the texture to the final output file. FBX Exporter will try to find the texture's raw data from IOConfig.getFileSystem(), and embed the file to final FBX file. Default value is false.
        Parameters:
        value - New value
      • getGenerateVertexElementMaterial

        public boolean getGenerateVertexElementMaterial()
        Gets whether always generate a VertexElementMaterial for geometries if the attached node contains materials. This is turned off by default.
      • setGenerateVertexElementMaterial

        public void setGenerateVertexElementMaterial​(boolean value)
        Sets whether always generate a VertexElementMaterial for geometries if the attached node contains materials. This is turned off by default.
        Parameters:
        value - New value