![]() Method search_by_predicate( predicate_fn) Returns: All airports that match the specified name, case-insensitive (an empty list if no airports match) Parameter: apt_name ( str) – The name of the airport you want to query Returns: The airport with the specified ID, or None if no matching airport exists in this collection. Parameter: apt_id ( str) – The X-Plane ID of the airport you want to query Note that these IDs may or may not correspond to the airports’ ICAO identifiers.Ī generator containing the names of all airports in the collection from_file ( os.PathLike): Path to the file from which this was readĪ generator containing the X-Plane IDs of all airports in the collection.apt_dat_file_text ( str): The contents of an apt.dat (or ICAO.dat) file.Static method from_file_text( apt_dat_file_text, from_file) -> AptDat xplane_version (int): The version of the apt.dat spec used by the airports in this collection.Parses X-Plane’s gigantic apt.dat files, which may have data on tens of thousands of airports. AptDat.AptDatĪ container class for Airport objects. Tools for reading, inspecting, and manipulating X-Plane’s airport (apt.dat) files. More sample code is available in the doctests in the gateway module docs below. """:type ksea_recommended_pack: GatewayApt""" print( "KSEA downloaded from the Gateway begins:") gateway import scenery_pack, GatewayApt ksea_recommended_pack = scenery_pack( 'KSEA') Sample code Parsing the default apt.dat file in your local X-Plane installationįrom xplane_airports. If you're migrating from a pre-4.0 version of the library, see the Migration notes section below. Xplane_airports requires Python 3.6 or newer. Publishing package updates to PyPI (for maintainers).(#xplane_airportsgatewayscenery_packpack_to_download-gatewayapt).](#xplane_airportsgatewayrecommended_scenery_packsselective_apt_idsnone-collectionsiterablegatewayapt).Downloaded the recommended scenery pack for an airport from the Gateway.Getting metadata on airports from the Gateway.Parsing the default apt.dat file in your local X-Plane installation.recommended_scenery_packs(): A generator equivalent to calling scenery_pack() to download the recommended scenery pack for every airport (or only a preselected list of airports, at your discretion).Includes both the apt.dat data and DSF, where applicable. scenery_pack(): Downloads either the recommended pack for the specified airport, or the scenery pack with the specified int ID.Unlike scenery_pack(), though, this does not include actual apt.dat or DSF data. airport(): Queries the Gateway for information about the specified airport itself, as well as metadata on all scenery packs submitted for it.airports(): Queries for metadata on all 35,000+ airports on the Gateway.The gateway module: Used to interact with the X-Plane Scenery Gateway to get information about what airports are available, and to download individual scenery packs contributed by the community.The Airport class: Represents an individual airport from an apt.dat file.The AptDat class itself: A parser for X-Plane's airport data files (which may contain more than 35,000 airports) a collection of Airport objects.The AptDat module: Used to parse & query raw apt.dat files (e.g., the files stored on disk in your X-Plane installation).This includes the following major components: Xplane_airports is a Python package for interacting with X-Plane's airport data ( apt.dat) files. Jonathan Harris has developed a set of export scripts for Blender, a free, powerful 3-d modeler: ///x-planescenery/.Tools for working with X-Plane airport data LIT, albedo, and normal maps also all export with standard X-Plane naming conventions intact. Substance will merge metalness, roughness, and normals all into a single normal map file. This configuration file lets you export texture work done in Substance to X-Plane’s texture and normal map formats. They can be used to import or export scenery or cockpits from Blender to X-Plane. These scripts have been developed by Ondrej Brinkel & Ted Greene. You can use it to create overlay scenery and customize airports. WorldEditor is a graphical scenery editor. MeshTool is a command-line tool to build base meshes from raw data. This plugin allows you to change x-plane’s built in DataRefs, very useful for plugin developers. The package also includes a drag and drop utility to assist. These tools allow you to quickly manipulate DSF files, PNG/DDS files, Obj files, with batch files or from the command line. This plugin allows the 3-d editor AC3D to import and export X-Plane. They are all open source and also available as ready-to-download binaries: These tools are created by LR for X-Plane.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |