Scripting File Import Export¶
Prerequisites¶
- The following methods are exposed by the ImportExport object implemented by the module Thinkbox.Sequoia.Conversion
- Before calling these methods, you must ensure the module is imported.
import Thinkbox.Sequoia.Conversion 1.0
Methods¶
<string> ImportExport.convertPointFile ( <Url>input, <Url>output )
- Converts the input point file supplied as first argument to the point file supplied as second argument.
- The file extension of the output file defines the target file format.
<void> ImportExport.exportMesh ( <bool>worldspace, <String>nodeId, [<string>filename=”“], [<string>documentId=”“] )
Exports the mesh of a Mesher or Mesh Loader object.
The first boolean argument controls the World vs. Object space:
- true : World Space,
- false : Object Space
The second argument is the node ID of the object to be exported.
The third, optional argument is the file name to save to.
- If not specified or set to empty string “”, a file dialog will pop up so the user can provide the file name interactively.
The fourth, optional argument is the document ID of the Document to export from.
- When not specified or set to empty string “”, the Active Document will be used.
<void> ImportExport.exportHacksawMesh ( <bool>worldspace, <string>nodeId, [<string>filename=”“], [<string>documentId=”“] )
Exports the Mesher as multiple Partitions using the Hacksaw feature.
The first boolean argument controls the World vs. Object space:
- true : World Space,
- false : Object Space
The second argument is the node ID of the object to be exported.
The third, optional argument is the file name to save to.
- If not specified or set to empty string “”, a file dialog will pop up so the user can provide the file name interactively.
The fourth, optional argument is the document ID of the Document to export from.
- When not specified or set to empty string “”, the Active Document will be used.
<void> ImportExport.exportPoints ( <bool>worldspace, <string>nodeId, [<string>filename=”“], [<string>documentId=”“] )
Exports the points of a Point Loader, Point Region Of Interest, or Surface Points object.
The first boolean argument controls the World vs. Object space:
- true : World Space,
- false : Object Space
The second argument is the node ID of the object to be exported.
The third, optional argument is the file name to save to.
- If not specified or set to empty string “”, a file dialog will pop up so the user can provide the file name interactively.
The fourth, optional argument is the document ID of the Document to export from.
- When not specified or set to empty string “”, the Active Document will be used.