Import/Export splines

Curvy allows to import splines from, and export them to other formats. The tool that allows this is available in the toolbar, here.

For now, the supported formats are:

  • SVG. Its support is subject to the same restrictions than Unity's support for SVG files.
  • JSON format. The JSON wrapper format is defined in the Curvy\ImportExport\Wrappers.cs file.

If you need any format that is not supported by Curvy, please let us know and we will try to add it to the package if possible.

Import and export of MetaData is not supported for now

The Import/Export window contains the following:

Configuration

Coordinate space

You can choose here in what coordinate space (global or local) the transforms of the imported/exported splines should be interpreted.

Format

What file format to use

Actions

Export selected spline(s)

Exports the selected spline(s) to a JSON file.

Import

Creates new spline(s) in the scene from the content of a JSON file. If you had an object selected when clicking on this button, the spline(s) will be add as a child of that object.

Advanced Actions

This section contains some actions aimed at advanced users. All of them interact with the text are at the bottom of the section. You can also edit the text by hand.

Read selected spline(s)

Fills the text area with the serialized splines that are selected.

Read from file

Fills the text area with the content of a file.

Write new spline(s)

Created new splines from the content of the text area. If you had an object selected when clicking on this button, the spline(s) will be add as a child of that object.

Write to file

Writes the content o the text are in a file.