We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d3bc054 commit fb30e0eCopy full SHA for fb30e0e
doc/python.rst
@@ -628,6 +628,12 @@ Parent:
628
The parent body of a given element -- including bodies and frames -- can be accessed via the ``parent`` property.
629
For example, the parent of a site can be accessed via ``site.parent``.
630
631
+Serialization
632
+^^^^^^^^^^^^^
633
+The ``MjSpec`` object can be serialized with all of its assets using the function ``spec.to_zip(file)``, where ``file``
634
+can be either a path to a file or a file object. In order to load the spec from a zip file, use ``spec =
635
+MjSpec.from_zip(file)``, where ``file`` is a path to a zip file or a zip file object.
636
+
637
.. _PyMJCF:
638
639
Relationship to ``PyMJCF`` and ``bind``
0 commit comments