API Docs for: 2.7.3
Show:

SketchfabExporter Class

Module: Wanaplan

A Sketchfab scene exporter.

Item Index

Methods

Methods

checkStatus

(
  • uid
  • success
  • error
)
static

Checks the status of a model.

Parameters:

  • uid Number

    The unique identifier of a model on Sketchfab.

  • success Function

    A function with one parameter which contains the status.

  • error Function

    A function called if an error occurred.

Export

(
  • meshes
  • options
  • completeCallback
)
static

Exports a scene into the STL file format and uploads it to Skechfab website.

Parameters:

  • meshes BABYLON.Mesh

    A single mesh.

  • options Object

    An object with options: - see STLExporter options. - token {String} The token is necessary to upload a model. - description {String} Description of the model. - tags {String} Tags used for this export. - private {String} Users with a pro account can upload private models. - password {String} The user's password if it has a pro account.

  • completeCallback Function

    A function called at the end of the process.

getMenuItem

(
  • options
)
Object static

Gets options displayed in the menu.

Parameters:

  • options Object

    A dictionary with default options for this exporter - token {String} - filename {String} The file's name. - description {String} A basic description. - tags {String} Tags separated by space.

Returns:

Object:

Returns an object ready to add to the menu.