Examples - M6D6M6A/TACO_TRAIL_EDITOR GitHub Wiki

All Functions

# Create a new track object
t = track()

# Import track from .trl file
t.import_trl(r"C:\Path\to\your\Trail\trail_name.trl")

# Print vars of track
print(vars(t))

# Export track to .trl file
t.export(r"C:\Path\to\your\Trail\trail_name_new.trl")

# Get JSON representation of track
print(t.to_json())

# Export JSON representation of track
print(t.export_json())

# Export JSON representation of track
t.import_json(r"C:\Path\to\your\Json_Trail\json_trail_name_new.json")

# Unpack JSON to class values
t.from_json(json_representation_of_track)

Edit Track

# Create a new track object
t = track()

# Import track from .trl file
t.import_trl(r"C:\Path\to\your\Trail\trail_name.trl")