Skip to content
fabian-flassig edited this page Jul 8, 2026 · 16 revisions

The pyio.* api functions are useful for persisting settings / values between executions of the plugin as well as for accessing and writing files on the local file system.

Settings:

Note

To persistently store and load any length values it is recommended to convert these values to a standard unit when saving and to the active length unit when loading by multiplying/dividing with the unit conversion factor returned by get_length_unit.

Reading:

Writing:

XML Utilities:

Path Handles:

These are the global forms of the path handle methods of the same name.

Plugin Folder:

Materials:

Note

Access to the file system is by design limited in the context of PYTHA plugins. File system paths are only made available through opaque handles ("path handle") and even for those, only limited file management functionality is provided.

See also:

pytha, pyui, get_length_unit

Clone this wiki locally