A simple import/export addon to write curve data to JSON.
Import Usage
To import curves from JSON, do the following:
- Select a curve or curves you want to export.
- Go to File->Import->Import Curve (.json).
- Select the file you want to import.
- Select your desired import settings.
- And finally press 'Import Curve'.
Export Usage
To use this addon, do the following:
- Select a curve or curves you want to export.
- Go to File->Export->Export Curve (.json). (If this option is disabled, check if you only have curve objects selected.)
- Select your desired export settings.
- Change the filename and filepath.
- And finally press 'Export Curve'.
Data Structure
Currently, it exports the following data:
- Export Settings
- world space coordinates (bool)
- axis up (enum)
- axis forward (enum)
- Curves Data
- object name (string)
- type (Poly, Bezier, Nurbs) (enum)
- spline length (float)
- cyclic u (bool)
- cyclic v (bool)
- points data
- tilt (float)
- radius (float)
- position [x, y, z]
- handles (only if type is 'Bezier' ) [x, y, z]
For now, animations and shape keys are not included.