Skip to main content

gedcom.export

Overview

  • Export current simulation's families and characters to a GEDCOM 7.0 file. Static snapshot of names/sex/birth_day/death_status. Marriage/divorce/death dates are NOT preserved by inZOI and are emitted as NOTE.

Metadata

FieldValue
DisplayGEDCOM Export
Categorygedcom
AccessPublic
ScopeB2Authority
Tags
Aliases

Parameters

NameTypeRequiredDefaultDescription
output_pathstringnoAbsolute path to a .ged file, OR a directory (a file inzoi_gedcom_.ged is auto-created inside it). A value without a .ged extension, ending with a separator, or naming an existing folder is treated as a directory. Default: Documents/inZOI/ged/inzoi_gedcom_.ged. Missing directories are created.
household_idintno0Specific household id to export. 0 = export all.
first_namestringnoMCCC-style root character first name. first_name and/or last_name selects the first matching character as root and exports only the connected family graph reachable from that character (ancestors, descendants, spouses, siblings). Either field alone is sufficient; if both are empty, all characters are exported.
last_namestringnoMCCC-style root character last name. Optional; can be used alone or together with first_name to disambiguate the root character.
portrait_dirstringnoOptional absolute path to a save-game Portrait/ folder. If omitted, auto-resolves to the most-recently-modified Portrait folder under Documents/InZOI/SaveGames* and copies <entity_id>.png next to the .ged file.
include_npcboolnofalseReserved (currently no-op; all characters exported). Phase 2 will filter background NPCs.

Returns

  • Return shape is not declared for this command.

Usage

await inzoi.cli.execute('gedcom.export', {
output_path: '', // optional
household_id: 0, // optional
first_name: '', // optional
last_name: '', // optional
portrait_dir: '', // optional
include_npc: false, // optional
});